Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 0.98.6


Expand All
Contract All

Table of Contents

wxBitmap

MODULE

wxBitmap

MODULE SUMMARY

See external documentation: wxBitmap.

DESCRIPTION

See external documentation: wxBitmap.

DATA TYPES

wxBitmap()

An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

EXPORTS

new() -> wxBitmap()

new(X::string() | term()) -> wxBitmap()

See external documentation.
Alternatives:

new(Filename::string()) -> new(Filename, [])

new(Image::wxImage:wxImage()) -> new(Image, [])

new(X::integer() | string() | term(), X::integer() | term()) -> wxBitmap()

See external documentation.
Alternatives:

new(Width::integer(), Height::integer()) -> new(Width,Height, [])

new(Filename::string(), [Option]) -> wxBitmap()
Option = {type, WxBitmapType}
WxBitmapType = integer()
WxBitmapType is one of ?wxBITMAP_TYPE_INVALID | ?wxBITMAP_TYPE_BMP | ?wxBITMAP_TYPE_BMP_RESOURCE | ?wxBITMAP_TYPE_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_ANI | ?wxBITMAP_TYPE_IFF | ?wxBITMAP_TYPE_TGA | ?wxBITMAP_TYPE_MACCURSOR | ?wxBITMAP_TYPE_MACCURSOR_RESOURCE | ?wxBITMAP_TYPE_ANY

new(Image::wxImage:wxImage(), [Option]) -> wxBitmap()
Option = {depth, integer()}

new(X::binary() | integer(), X::integer(), X::integer() | term()) -> wxBitmap()

See external documentation.
Alternatives:

new(Bits::binary(), Width::integer(), Height::integer()) -> new(Bits,Width,Height, [])

new(Width::integer(), Height::integer(), [Option]) -> wxBitmap()
Option = {depth, integer()}

new(Bits::binary(), Width::integer(), Height::integer(), Options::[Option]) -> wxBitmap()

Types:

Option = {depth, integer()}

convertToImage(This::wxBitmap()) -> wxImage() (see module wxImage)

copyFromIcon(This::wxBitmap(), Icon::wxIcon() (see module wxIcon)) -> bool()

create(This::wxBitmap(), Width::integer(), Height::integer()) -> bool()

create(This::wxBitmap(), Width::integer(), Height::integer(), Options::[Option]) -> bool()

Types:

Option = {depth, integer()}

getDepth(This::wxBitmap()) -> integer()

getHeight(This::wxBitmap()) -> integer()

getPalette(This::wxBitmap()) -> wxPalette() (see module wxPalette)

getMask(This::wxBitmap()) -> wxMask() (see module wxMask)

getWidth(This::wxBitmap()) -> integer()

getSubBitmap(This::wxBitmap(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> wxBitmap()

loadFile(This::wxBitmap(), Name::string()) -> bool()

Equivalent to loadFile(This, Name, []).

loadFile(This::wxBitmap(), Name::string(), Options::[Option]) -> bool()

Types:

Option = {type, WxBitmapType}
WxBitmapType = integer()

See external documentation.
WxBitmapType is one of ?wxBITMAP_TYPE_INVALID | ?wxBITMAP_TYPE_BMP | ?wxBITMAP_TYPE_BMP_RESOURCE | ?wxBITMAP_TYPE_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_ANI | ?wxBITMAP_TYPE_IFF | ?wxBITMAP_TYPE_TGA | ?wxBITMAP_TYPE_MACCURSOR | ?wxBITMAP_TYPE_MACCURSOR_RESOURCE | ?wxBITMAP_TYPE_ANY

ok(This::wxBitmap()) -> bool()

saveFile(This::wxBitmap(), Name::string(), Type::WxBitmapType) -> bool()

saveFile(This::wxBitmap(), Name::string(), Type::WxBitmapType, Options::[Option]) -> bool()

Types:

Option = {palette, wxPalette() (see module wxPalette)}
WxBitmapType = integer()

See external documentation.
WxBitmapType is one of ?wxBITMAP_TYPE_INVALID | ?wxBITMAP_TYPE_BMP | ?wxBITMAP_TYPE_BMP_RESOURCE | ?wxBITMAP_TYPE_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_ANI | ?wxBITMAP_TYPE_IFF | ?wxBITMAP_TYPE_TGA | ?wxBITMAP_TYPE_MACCURSOR | ?wxBITMAP_TYPE_MACCURSOR_RESOURCE | ?wxBITMAP_TYPE_ANY

setDepth(This::wxBitmap(), Depth::integer()) -> ok

setHeight(This::wxBitmap(), Height::integer()) -> ok

setMask(This::wxBitmap(), Mask::wxMask() (see module wxMask)) -> ok

setPalette(This::wxBitmap(), Palette::wxPalette() (see module wxPalette)) -> ok

setWidth(This::wxBitmap(), Width::integer()) -> ok

destroy(This::wxBitmap()) -> ok

Destroys this object, do not use object again