Simple rectangle with integer bounds.
Definition of single plane bitmap.
virtual int GetComponentBitsCount(int componentIndex=0) const =0
Get number of bits per single pixel component.
PixelFormat
Bitmap pixel format description.
@ PF_GRAY32
32-bit grayscale bitmap.
@ PF_XY32
Pixel value is a 32-bit floating 2D-coordinate (X,Y) In this mode the bitmap represents 2D calibratio...
@ PF_RGB48
48-bit RGB-bitmap packed bitmap (16-16-16).
@ PF_USER
First user defined pixel format.
@ PF_CMYK
32-bit CMYK-bitmap.
@ PF_RGB24
24-bit RGB-bitmap packed bitmap.
@ PF_XYZ32
Pixel value is a 32-bit floating 3D-coordinate (X,Y,Z) In this mode the bitmap represents an organize...
@ PF_RGBA
32-bit RGB bitmap with alpha channel.
@ PF_FLOAT32
32-bit floating point coded bitmap (type float).
@ PF_FLOAT64
64-bit floating point coded bitmap (type double).
@ PF_GRAY16
16-bit grayscale bitmap.
@ PF_GRAY
8-bit grayscale bitmap.
@ PF_UNKNOWN
Unknown image format.
@ PF_RGB
32-bit RGB-bitmap, alpha channel can be ignored.
@ PF_RGBA64
64-bit RGBA-bitmap packed bitmap (16-16-16-16).
@ PF_MONO
Monochrome bitmap.
virtual int GetPixelBitsCount() const =0
Get total number of bits per single pixel.
virtual int GetLineBytesCount() const =0
Number of bytes per single line.
virtual bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, void *dataPtr, bool releaseFlag, int linesDifference=0)=0
Create bitmap with specified size and format using external image data buffer.
virtual void * GetLinePtr(int positionY)=0
Get pointer to buffer for single line.
virtual bool CreateImageFromRegion(const iimg::IBitmap &sourceImage, const i2d::CRect ®ion)=0
Create image as a copy of rectangular region of some other image.
virtual int GetLinesDifference() const =0
Get address difference between next and previous line.
virtual int GetPixelsDifference() const =0
Get address difference between next and previous pixel.
virtual bool IsFormatSupported(PixelFormat pixelFormat) const =0
Get true if the pixel format is supported by the bitmap implementation.
virtual PixelFormat GetPixelFormat() const =0
Get the bitmap's pixel format.
virtual const void * GetLinePtr(int positionY) const =0
Get pointer to buffer for single line.
virtual bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, int pixelBitsCount=0, int componentsCount=0)=0
Create bitmap with specified size and format.
General definition of image contains pixels in regular grid.
Index implementation for addressing elements in 2D-space.
Shared ownership smart pointer for interface types.
Unique ownership smart pointer for interface types.
Contains the system indenendent definitions of image and related themes.
istd::TSharedInterfacePtr< iimg::IBitmap > IBitmapSharedPtr
istd::TUniqueInterfacePtr< iimg::IBitmap > IBitmapUniquePtr