6#ifndef iimg_CBitmapBase_included
7#define iimg_CBitmapBase_included
Base class for 2D-objects implementing interface i2d::IObject2d.
Simple rectangle with integer bounds.
Definition of rectangle area orthogonal to axis of coordination system.
Definition of position or mathematical vector on 2D plane.
Generic color implementation with variable number of color components.
Base implementation of some iimg::IBitmap methods.
icmm::CVarColor GetColorAt(const istd::CIndex2d &position) const override
Get color at specified pixel.
i2d::CRectangle GetBoundingBox() const override
Get bounding box of this shape.
int GetLineBytesCount() const override
Number of bytes per single line.
int GetComponentBitsCount(int componentIndex=0) const override
Get number of bits per single pixel component.
virtual bool CreateImageFromRegion(const iimg::IBitmap &sourceBitmap, const i2d::CRect ®ion)
i2d::CObject2dBase BaseClass
bool SetColorAt(const istd::CIndex2d &position, const icmm::CVarColor &color) override
Set color at specified pixel.
bool IsEmpty() const override
Return true if this image is empty.
i2d::CVector2d GetCenter() const override
Returns center of this 2D-object.
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
void MoveCenterTo(const i2d::CVector2d &position) override
Move object to position position.
bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
Definition of single plane bitmap.
Represent input/output persistence archive.
Index implementation for addressing elements in 2D-space.
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.