wxBitmap
The first creation parameter should define the method of creation.
- BM_IN_MEMORY This creates a bitmap in memory, similar to a Pixmap control
in win32lib. This form takes three additional parameters:
- width
- height
- depth [= -1] (for the display depth of the screen)
- BM_XPM
- BM_FROM_FILE This loads a bitmap from a file or resource. The second parameter should be the file or
resource name, and the final parameter should be the type of file:
- wxBITMAP_TYPE_INVALID
- wxBITMAP_TYPE_BMP
- wxBITMAP_TYPE_BMP_RESOURCE
- wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE
- wxBITMAP_TYPE_ICO
- wxBITMAP_TYPE_ICO_RESOURCE
- wxBITMAP_TYPE_CUR
- wxBITMAP_TYPE_CUR_RESOURCE
- wxBITMAP_TYPE_XBM
- wxBITMAP_TYPE_XBM_DATA
- wxBITMAP_TYPE_XPM
- wxBITMAP_TYPE_XPM_DATA
- wxBITMAP_TYPE_TIF
- wxBITMAP_TYPE_TIF_RESOURCE
- wxBITMAP_TYPE_GIF
- wxBITMAP_TYPE_GIF_RESOURCE
- wxBITMAP_TYPE_PNG
- wxBITMAP_TYPE_PNG_RESOURCE
- wxBITMAP_TYPE_JPEG
- wxBITMAP_TYPE_JPEG_RESOURCE
- wxBITMAP_TYPE_PNM
- wxBITMAP_TYPE_PNM_RESOURCE
- wxBITMAP_TYPE_PCX
- wxBITMAP_TYPE_PCX_RESOURCE
- wxBITMAP_TYPE_PICT
- wxBITMAP_TYPE_PICT_RESOURCE
- wxBITMAP_TYPE_ICON
- wxBITMAP_TYPE_ICON_RESOURCE
- wxBITMAP_TYPE_MACCURSOR
- wxBITMAP_TYPE_MACCURSOR_RESOURCE
- wxBITMAP_TYPE_ANY
- BM_FROM_IMAGE This creates a new wxBitmap object from the contents of the provided wxImage object.
- /wxImage
- depth [= -1] (for the display depth of the screen)
Functions/Procedures
- func convert_to_image( atom bitmap )
- proc draw_bitmap2( object bitmap, atom dest, atom xsrc, atom ysrc, atom xdest, atom ydest, atom width, atom height, atom logical_func, integer use_mask )
- func get_bitmap_size( atom bitmap )
- func get_palette( atom bmp )
- func save_bitmap( atom bitmap, object name, atom type, atom palette )
- proc set_bitmap_size( atom bitmap, integer width, integer height )
- proc set_mask( atom bmp, atom mask )
Supertopics
Subtopics
wxBitmap
Category:
wxBitmap
Takes a wxBitmap and returns a wxImage.
wxBitmap
[proc]
draw_bitmap2 ( object bitmap, atom dest, atom xsrc, atom ysrc, atom xdest, atom ydest, atom width, atom height, atom logical_func, integer use_mask )
Category:
wxBitmap
wxBitmap
Category:
wxBitmap
Returns sequence containing the width and height of the bitmap, respectively.
wxBitmap
Category:
wxBitmap
Gets the associated palette (if any) which may have been loaded from a file or set for the bitmap.
wxBitmap
[func]
save_bitmap ( atom bitmap, object name, atom type, atom palette )
Category:
wxBitmap
Returns: true if the operation succeeded, false otherwise.
Saves a bitmap in the named file.
Parameters
wxBitmap
[proc]
set_bitmap_size ( atom bitmap, integer width, integer height )
Category:
wxBitmap
Sets the width and height of the bitmap.
wxBitmap
Category:
wxBitmap
Sets the specified mask to be the associated wxMask for the specified bmp.