Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a bitmap. More...
#include <pdfsdk/cxx/graphics.h>
Public Member Functions | |
| void | SaveToFile (const std::filesystem::path &path) const |
| GXPixelFormat | GetPixelFormat () const |
| SizeI | GetSize () const |
| float | GetDpiX () const |
| float | GetDpiY () const |
| int | GetBitsPerPixel () const |
| void | SetPalette (const Palette &palette) |
| Palette | GetPalette () const |
| GXLockedData | Lock (GXLockMode mode, const RectI *rect=nullptr) |
| void | Unlock () |
| void | CopyFromBitmap (const Bitmap &source, const RectI *source_rect=nullptr, const PointI *dest_point=nullptr) |
| void | CopyFromMemory (const GXLockedData &memory, const RectI *dest_rect=nullptr) |
| void | CopyToMemory (const GXLockedData &memory, const RectI *source_rect=nullptr) const |
| void | ColorFill (GXColorValue color, const RectI *fill_rect=nullptr) |
| void | NotifyChanged () |
| void | SetOffscreenPainting (bool offscreen) |
| Bitmap (GXBitmap handle, bool adopt=false) noexcept | |
| Bitmap (const Bitmap &rhs) noexcept | |
| Bitmap & | operator= (const Bitmap &rhs) noexcept |
| Bitmap (Bitmap &&rhs) noexcept | |
| Bitmap & | operator= (Bitmap &&rhs) noexcept |
Static Public Member Functions | |
| static Bitmap | New (const SizeI &size, GXPixelFormat format, float dpiX=96, float dpiY=96) |
| static Bitmap | LoadFromFile (const std::filesystem::path &path, uint32_t frame_index=0, uint32_t *ptotal_frames=nullptr) |
| static Bitmap | LoadFromMemory (const void *data, size_t size, uint32_t frame_index=0, uint32_t *ptotal_frames=nullptr) |
Represents a bitmap.