6#ifndef iimg_IBitmap_included
7#define iimg_IBitmap_included
Definition of single plane bitmap.
virtual int GetComponentBitsCount(int componentIndex=0) const =0
Get number of bits per single pixel component.
virtual bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, istd::COptMemory &&data, int linesDifference=0)=0
Create bitmap with specified size and format using external image data buffer.
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_USER
First user defined pixel format.
@ 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_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 void * GetLinePtr(int positionY)=0
Get pointer to buffer for single line.
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.
Memory block with optional deleting function used during destruction.
Contains the system indenendent definitions of image and related themes.