Simple rectangle with integer bounds.
ibase::CSize GetSize() const
Get size of rectangle.
Base implementation of some iimg::IBitmap methods.
Represents bitmap rectangle slice.
int GetSupportedOperations() const override
Get set of flags for supported operations.
bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, int pixelBitsCount=0, int componentsCount=0) override
Create bitmap with specified size and format.
void ClearImage() override
Cleat this image.
bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
Copy this object from another one.
int GetComponentsCount() const override
Get number of color components.
int GetLinesDifference() const override
Get address difference between next and previous line.
CBitmapSlice & operator=(const CBitmapSlice &bitmap)
void ResetImage() override
Reset this image.
const void * GetLinePtr(int positionY) const override
Get pointer to buffer for single line.
istd::CIndex2d GetImageSize() const override
Get size of this raster image.
std::unique_ptr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
PixelFormat GetPixelFormat() const override
Get the bitmap's pixel format.
bool IsFormatSupported(PixelFormat pixelFormat) const override
Get true if the pixel format is supported by the bitmap implementation.
bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, istd::COptMemory &&data, int linesDifference=0) override
Create bitmap with specified size and format using external image data buffer.
int GetPixelsDifference() const override
Get address difference between next and previous pixel.
bool operator==(const CBitmapSlice &bitmap) const
CBitmapSlice(IBitmap *origImagePtr, i2d::CRect area, bool isWrapped=false)
CBitmapSlice(const CBitmapSlice &bitmap)
bool operator!=(const CBitmapSlice &bitmap) const
CBitmapSlice(CBitmapSlice &&bitmap)
int GetPixelBitsCount() const override
Get total number of bits per single pixel.
void * GetLinePtr(int positionY) override
Get pointer to buffer for single line.
Definition of single plane bitmap.
PixelFormat
Bitmap pixel format description.
Index implementation for addressing elements in 2D-space.
Memory block with optional deleting function used during destruction.
Common interface for data model objects, which can be changed.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Contains the system indenendent definitions of image and related themes.