cgv
Loading...
Searching...
No Matches
bmp_writer.h
1#pragma once
2
3#include "image_writer.h"
4#include <stdio.h>
5#include "lib_begin.h"
6
7namespace cgv {
8 namespace media {
9 namespace image {
10
12class CGV_API bmp_writer : public abst_image_writer
13{
14protected:
15 std::string last_error;
16 FILE* fp;
17public:
19 bmp_writer();
21 std::string get_type_name() const;
23 abst_image_writer* clone() const;
25 const char* get_supported_extensions() const;
27 bool is_format_supported(const cgv::data::component_format& cf, const std::vector<cgv::data::component_format>* palette_formats) const;
29 std::string get_options() const;
31 const std::string& get_last_error() const;
33 bool open(const std::string& file_name);
35 bool write_image(const cgv::data::const_data_view& dv, const std::vector<cgv::data::const_data_view>* palettes, double duration);
37 bool close();
38};
39
40 }
41 }
42}
43
44#include <cgv/config/lib_end.h>
the component format inherits the information of a packing_info and adds information on the component...
The const_data_view has the functionality of the data_view but uses a const pointer and therefore doe...
Definition data_view.h:221
abstract interface for image readers
implements the image writer interface for bmp files
Definition bmp_writer.h:13
the cgv namespace
Definition print.h:11