back to gui 

wxBitmap

generated from ../src/mod_gui/misc/bitmap.cpp

This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour. See wxIcon and wxBitmapType

Constants

Constructor

wxBitmap

wxBitmap()
 
wxBitmap(Name, 
         Type)
 
Name Type Default Description
Name String Filename
Type Integer The type of the bitmap.

Constructs a new wxBitmap object. See wxBitmapType

Properties

Name Type Description
depth Integer Get/Set the colour depth of the bitmap. A value of 1 indicates a monochrome bitmap.
height Integer Get/Set the height of the bitmap in pixels.
ok read only Boolean Returns true when the bitmap data is available.
width Integer Get/Set the width of the bitmap in pixels.

Methods

create

create(Width, 
       Height, 
       Depth = -1) : Boolean
 
Name Type Default Description
Width Integer The width of the bitmap in pixels.
Height Integer The height of the bitmap in pixels.
Depth Integer -1 The depth of the bitmap in pixels. When omitted (or a value -1) , the screen depth is used.

Creates a fresh bitmap.

loadFile

loadFile(Name, 
         Type) : Boolean
 
Name Type Default Description
Name String The name of the file.
Type Integer The type of the bitmap.

Loads a bitmap from a file.



SourceForge.net Logo Support This Project

Table of Contents

Constructor

wxBitmap

Properties

depth
height
ok
width

Methods

create
loadFile


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.