58 std::unique_ptr<CYIBitmap>
Clone()
const;
64 virtual bool Create(int32_t nWidth, int32_t nHeight);
72 void Draw(
const CYIBitmap &srcImage, int32_t nDestX, int32_t nDestY);
88 void Draw(
const CYIBitmap &srcImage, int32_t nDestX, int32_t nDestY, int32_t nClipWidth, int32_t nClipHeight);
170 virtual int32_t
GetSize()
const;
192 virtual void SetPixelPacked(int32_t nX, int32_t nY, uint32_t color);
199 void SetPixelRaw(int32_t nX, int32_t nY, uint32_t color);
218 uint32_t
GetPixelRaw(int32_t nX, int32_t nY)
const;
242 std::unique_ptr<CYIBitmapPriv> m_pPriv;
243 CYIBitmap(std::unique_ptr<CYIBitmapPriv> pPriv);
250 #endif // _YI_BITMAP_H_
DITHERING_MODE
Definition: YiBitmap.h:46
int32_t GetXPitch() const
Definition: YiPredef.h:234
Definition: YiBitmap.h:28
Four channel color with 8 bits per color. The 'red' component is at the lowest bits of the 32 bit wor...
Definition: YiBitmap.h:37
Definition: YiPredef.h:183
The core bitmap container class used by You.i Engine.
Definition: YiBitmap.h:20
void SetPixels(uint32_t *pBits, int32_t nWidth, int32_t nHeight, CYIBitmap::OWNERSHIP ownership=CYIBitmap::PRIVATE)
OWNERSHIP
Definition: YiBitmap.h:25
int32_t GetYPitch() const
virtual int32_t GetSize() const
bool operator!=(const CYIBitmap &other) const
void DrawScale(const CYIBitmap &srcImage, const YI_RECT_REL *pDest, const YI_RECT_REL *pSrc)
COLOR_MODE GetColorMode() const
bool operator==(const CYIBitmap &other) const
Indicates that Floyd-Steinberg dithering should be used.
Definition: YiBitmap.h:49
friend class CYIBitmapPriv
Definition: YiBitmap.h:22
CYIColor GetPixel(int32_t nX, int32_t nY) const
virtual bool Create(int32_t nWidth, int32_t nHeight)
void SetPixelRaw(int32_t nX, int32_t nY, uint32_t color)
std::unique_ptr< CYIBitmap > ToColorMode(COLOR_MODE eColorMode, DITHERING_MODE eDitheringMode=DITHERING_NONE) const
virtual int32_t GetHeight() const
virtual uint32_t GetPixelPacked(int32_t nX, int32_t nY) const
uint32_t GetBytesPerPixel() const
void ReduceHeightTo(int32_t nNewHeight)
virtual void SetPixelPacked(int32_t nX, int32_t nY, uint32_t color)
void SetPixel(int32_t nX, int32_t nY, const CYIColor &color)
void Draw(const CYIBitmap &srcImage, int32_t nDestX, int32_t nDestY)
Definition: YiBitmap.h:27
COLOR_MODE
Definition: YiBitmap.h:35
Four channel color with 4 bits per color. The 'red' component is at the lowest bits of the 16 bit wor...
Definition: YiBitmap.h:38
Three channel color with 5 bits for the red channel, 6 bits for the green channel and 5 bits for the ...
Definition: YiBitmap.h:39
virtual int32_t GetDepth() const
virtual int32_t GetWidth() const
A class used to represent a color value.
Definition: YiColor.h:31
const uint32_t * GetPixels() const
uint32_t GetPixelRaw(int32_t nX, int32_t nY) const
std::unique_ptr< CYIBitmap > Clone() const
void Fill(const CYIColor &color)
No dithering.
Definition: YiBitmap.h:48