Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
vtBitmap Class Reference

#include <vtBitmap.h>

Inheritance diagram for vtBitmap:
vtBitmapBase

Public Member Functions

bool Allocate (int iXSize, int iYSize, int iDepth=24)
 
bool IsAllocated () const
 
void SetPixel24 (int x, int y, uchar r, uchar g, uchar b)
 
void SetPixel24 (int x, int y, const RGBi &rgb)
 
void GetPixel24 (int x, int y, RGBi &rgb) const
 
void SetPixel32 (int x, int y, const RGBAi &rgba)
 
void GetPixel32 (int x, int y, RGBAi &rgba) const
 
uchar GetPixel8 (int x, int y) const
 
void SetPixel8 (int x, int y, uchar color)
 
uint GetWidth () const
 
uint GetHeight () const
 
uint GetDepth () const
 
void ContentsChanged ()
 
bool ReadPNGFromMemory (uchar *buf, int len)
 
bool WriteJPEG (const char *fname, int quality)
 
- Public Member Functions inherited from vtBitmapBase
void ScalePixel8 (int x, int y, float fScale)
 
void ScalePixel24 (int x, int y, float fScale)
 
void ScalePixel32 (int x, int y, float fScale)
 
void BlitTo (vtBitmapBase &target, int x, int y)
 

Public Attributes

wxBitmap * m_pBitmap
 

Protected Member Functions

bool Allocate8 (int iXSize, int iYSize)
 
bool Allocate24 (int iXSize, int iYSize)
 

Protected Attributes

wxImage * m_pImage
 

Detailed Description

This class provides an encapsulation of "bitmap" behavior, which can either use the Win32 DIBSection methods, or the wxWidgets Bitmap methods.

Set USE_DIBSECTIONS to 1 to get the DIBSection functionality.

Member Function Documentation

bool vtBitmap::WriteJPEG ( const char *  fname,
int  quality 
)

Write a JPEG file.

Parameters
fnameThe output filename.
qualityJPEG quality in the range of 0..100.

The documentation for this class was generated from the following files: