34 #include <SketchUpAPI/model/image_rep.h> 36 #include "SUAPI-CppWrapper/model/Entity.hpp" 48 SUImageRepRef m_image_rep;
51 static SUImageRepRef copy_reference(
const ImageRep& other);
57 ImageRep(SUImageRepRef image_rep,
bool attached =
true);
76 SUImageRepRef ref()
const;
77 operator SUImageRepRef()
const;
78 operator SUImageRepRef*();
94 void load_file(
const std::string file_path);
99 SUResult
save_to_file(
const std::string file_path)
const;
104 size_t width()
const;
119 void resize(
size_t width,
size_t height);
void load_file(const std::string file_path)
void set_data(size_t width, size_t height, size_t bits_per_pixel, size_t row_padding, std::vector< SUByte > pixel_data)
void resize(size_t width, size_t height)
ImageRep & operator=(const ImageRep &other)
size_t row_padding() const
size_t bits_per_pixel() const
SUResult save_to_file(const std::string file_path) const
std::vector< SUByte > pixel_data() const