1 /*  $Id: image_io_bmp.cpp 128295 2008-05-21 14:18:11Z lavr $
2  * ===========================================================================
3  *
4  *                            PUBLIC DOMAIN NOTICE
5  *               National Center for Biotechnology Information
6  *
7  *  This software/database is a "United States Government Work" under the
8  *  terms of the United States Copyright Act.  It was written as part of
9  *  the author's official duties as a United States Government employee and
10  *  thus cannot be copyrighted.  This software/database is freely available
11  *  to the public for use. The National Library of Medicine and the U.S.
12  *  Government have not placed any restriction on its use or reproduction.
13  *
14  *  Although all reasonable efforts have been taken to ensure the accuracy
15  *  and reliability of the software and data, the NLM and the U.S.
16  *  Government do not and cannot warrant the performance or results that
17  *  may be obtained by using this software or data. The NLM and the U.S.
18  *  Government disclaim all warranties, express or implied, including
19  *  warranties of performance, merchantability or fitness for any particular
20  *  purpose.
21  *
22  *  Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors:  Mike DiCuccio
27  *
28  * File Description:
29  *    CImageIOBmp -- interface class for reading/writing Windows BMP files
30  */
31 
32 #include <ncbi_pch.hpp>
33 #include "image_io_bmp.hpp"
34 #include <util/image/image.hpp>
35 #include <util/image/image_exception.hpp>
36 
37 BEGIN_NCBI_SCOPE
38 
ReadImage(CNcbiIstream &)39 CImage* CImageIOBmp::ReadImage(CNcbiIstream&)
40 {
41     NCBI_THROW(CImageException, eUnsupported,
42                "CImageIOBmp::ReadImage(): BMP format read unimplemented");
43 }
44 
ReadImage(CNcbiIstream &,size_t,size_t,size_t,size_t)45 CImage* CImageIOBmp::ReadImage(CNcbiIstream&,
46                                size_t, size_t, size_t, size_t)
47 {
48     NCBI_THROW(CImageException, eUnsupported,
49                "CImageIOBmp::ReadImage(): BMP format partial "
50                "read unimplemented");
51 }
52 
ReadImageInfo(CNcbiIstream &,size_t *,size_t *,size_t *)53 bool CImageIOBmp::ReadImageInfo(CNcbiIstream&,
54                                 size_t*, size_t*, size_t*)
55 {
56     NCBI_THROW(CImageException, eUnsupported,
57                "CImageIOBmp::ReadImageInfo(): BMP format inspection "
58                "unimplemented");
59 }
60 
WriteImage(const CImage &,CNcbiOstream &,CImageIO::ECompress)61 void CImageIOBmp::WriteImage(const CImage&, CNcbiOstream&,
62                              CImageIO::ECompress)
63 {
64     NCBI_THROW(CImageException, eUnsupported,
65                "CImageIOBmp::WriteImage(): BMP format write unimplemented");
66 }
67 
WriteImage(const CImage &,CNcbiOstream &,size_t,size_t,size_t,size_t,CImageIO::ECompress)68 void CImageIOBmp::WriteImage(const CImage&, CNcbiOstream&,
69                              size_t, size_t, size_t, size_t,
70                              CImageIO::ECompress)
71 {
72     NCBI_THROW(CImageException, eUnsupported,
73                "CImageIOBmp::WriteImage(): BMP format partial "
74                "write unimplemented");
75 }
76 
77 
78 END_NCBI_SCOPE
79