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

wxErlang
Reference Manual
Version 0.99


Expand All
Contract All

Table of Contents

wxImage

MODULE

wxImage

MODULE SUMMARY

See external documentation: wxImage.

DESCRIPTION

See external documentation: wxImage.

All (default) image handlers are initialized.

DATA TYPES

wxImage()

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() -> wxImage()

new(Name::string()) -> wxImage()

Equivalent to new(Name, []).

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

See external documentation.
Alternatives:

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

new(Name::string(), [Option]) -> wxImage()
Option = {type, integer()} | {index, integer()}

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

See external documentation.
Alternatives:

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

new(Width::integer(), Height::integer(), [Option]) -> wxImage()
Option = {clear, bool()}

new(Name::string(), Mimetype::string(), [Option]) -> wxImage()
Option = {index, integer()}

new(Width::integer(), Height::integer(), Data::binary(), X::binary() | term()) -> wxImage()

See external documentation.
Alternatives:

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

new(Width::integer(), Height::integer(), Data::binary(), [Option]) -> wxImage()
Option = {static_data, bool()}

new(Width::integer(), Height::integer(), Data::binary(), Alpha::binary(), Options::[Option]) -> wxImage()

Types:

Option = {static_data, bool()}

blur(This::wxImage(), Radius::integer()) -> wxImage()

blurHorizontal(This::wxImage(), Radius::integer()) -> wxImage()

blurVertical(This::wxImage(), Radius::integer()) -> wxImage()

convertAlphaToMask(This::wxImage()) -> bool()

convertAlphaToMask(This::wxImage(), Options::[Option]) -> bool()

Types:

Option = {threshold, integer()}

convertToGreyscale(This::wxImage()) -> wxImage()

convertToGreyscale(This::wxImage(), Options::[Option]) -> wxImage()

Types:

Option = {lr, float()} | {lg, float()} | {lb, float()}

convertToMono(This::wxImage(), R::integer(), G::integer(), B::integer()) -> wxImage()

copy(This::wxImage()) -> wxImage()

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

create(This::wxImage(), Width::integer(), Height::integer(), X::binary() | term()) -> bool()

See external documentation.
Alternatives:

create(This::wxImage(), Width::integer(), Height::integer(), Data::binary()) -> create(This,Width,Height,Data, [])

create(This::wxImage(), Width::integer(), Height::integer(), [Option]) -> bool()
Option = {clear, bool()}

create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), X::binary() | term()) -> bool()

See external documentation.
Alternatives:

create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), Alpha::binary()) -> create(This,Width,Height,Data,Alpha, [])

create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), [Option]) -> bool()
Option = {static_data, bool()}

create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), Alpha::binary(), Options::[Option]) -> bool()

Types:

Option = {static_data, bool()}

Destroy(This::wxImage()) -> ok

findFirstUnusedColour(This::wxImage()) -> {bool(), R::integer(), G::integer(), B::integer()}

findFirstUnusedColour(This::wxImage(), Options::[Option]) -> {bool(), R::integer(), G::integer(), B::integer()}

Types:

Option = {startR, integer()} | {startG, integer()} | {startB, integer()}

getImageExtWildcard() -> string()

getAlpha(This::wxImage()) -> binary()

getAlpha(This::wxImage(), X::integer(), Y::integer()) -> integer()

getBlue(This::wxImage(), X::integer(), Y::integer()) -> integer()

getData(This::wxImage()) -> binary()

getGreen(This::wxImage(), X::integer(), Y::integer()) -> integer()

getImageCount(Name::string()) -> integer()

Equivalent to getImageCount(Name, []).

getImageCount(Name::string(), Options::[Option]) -> integer()

Types:

Option = {type, integer()}

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

getMaskBlue(This::wxImage()) -> integer()

getMaskGreen(This::wxImage()) -> integer()

getMaskRed(This::wxImage()) -> integer()

getOrFindMaskColour(This::wxImage()) -> {bool(), R::integer(), G::integer(), B::integer()}

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

getRed(This::wxImage(), X::integer(), Y::integer()) -> integer()

getSubImage(This::wxImage(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> wxImage()

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

hasAlpha(This::wxImage()) -> bool()

hasMask(This::wxImage()) -> bool()

getOption(This::wxImage(), Name::string()) -> string()

getOptionInt(This::wxImage(), Name::string()) -> integer()

hasOption(This::wxImage(), Name::string()) -> bool()

initAlpha(This::wxImage()) -> ok

initStandardHandlers() -> ok

isTransparent(This::wxImage(), X::integer(), Y::integer()) -> bool()

isTransparent(This::wxImage(), X::integer(), Y::integer(), Options::[Option]) -> bool()

Types:

Option = {threshold, integer()}

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

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

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

Types:

Option = {type, integer()} | {index, integer()}

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

Types:

Option = {index, integer()}

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

removeHandler(Name::string()) -> bool()

mirror(This::wxImage()) -> wxImage()

Equivalent to mirror(This, []).

mirror(This::wxImage(), Options::[Option]) -> wxImage()

Types:

Option = {horizontally, bool()}

replace(This::wxImage(), R1::integer(), G1::integer(), B1::integer(), R2::integer(), G2::integer(), B2::integer()) -> ok

rescale(This::wxImage(), Width::integer(), Height::integer()) -> wxImage()

rescale(This::wxImage(), Width::integer(), Height::integer(), Options::[Option]) -> wxImage()

Types:

Option = {quality, integer()}

resize(This::wxImage(), Size::{W::integer(), H::integer()}, Pos::{X::integer(), Y::integer()}) -> wxImage()

resize(This::wxImage(), Size::{W::integer(), H::integer()}, Pos::{X::integer(), Y::integer()}, Options::[Option]) -> wxImage()

Types:

Option = {r, integer()} | {g, integer()} | {b, integer()}

rotate(This::wxImage(), Angle::float(), Centre_of_rotation::{X::integer(), Y::integer()}) -> wxImage()

rotate(This::wxImage(), Angle::float(), Centre_of_rotation::{X::integer(), Y::integer()}, Options::[Option]) -> wxImage()

Types:

Option = {interpolating, bool()} | {offset_after_rotation, {X::integer(), Y::integer()}}

rotateHue(This::wxImage(), Angle::float()) -> ok

rotate90(This::wxImage()) -> wxImage()

Equivalent to rotate90(This, []).

rotate90(This::wxImage(), Options::[Option]) -> wxImage()

Types:

Option = {clockwise, bool()}

saveFile(This::wxImage(), Name::string()) -> bool()

saveFile(This::wxImage(), Name::string(), X::integer() | string()) -> bool()

See external documentation.
Alternatives:

saveFile(This::wxImage(), Name::string(), Type::integer()) -> bool()

saveFile(This::wxImage(), Name::string(), Mimetype::string()) -> bool()

scale(This::wxImage(), Width::integer(), Height::integer()) -> wxImage()

scale(This::wxImage(), Width::integer(), Height::integer(), Options::[Option]) -> wxImage()

Types:

Option = {quality, integer()}

size(This::wxImage(), Size::{W::integer(), H::integer()}, Pos::{X::integer(), Y::integer()}) -> wxImage()

Equivalent to size(This, Size, Pos, []).

size(This::wxImage(), Size::{W::integer(), H::integer()}, Pos::{X::integer(), Y::integer()}, Options::[Option]) -> wxImage()

Types:

Option = {r, integer()} | {g, integer()} | {b, integer()}

setAlpha(This::wxImage(), Alpha::binary()) -> ok

Equivalent to setAlpha(This, Alpha, []).

setAlpha(This::wxImage(), Alpha::binary(), Options::[Option]) -> ok

Types:

Option = {static_data, bool()}

setAlpha(This::wxImage(), X::integer(), Y::integer(), Alpha::integer()) -> ok

setData(This::wxImage(), Data::binary()) -> ok

Equivalent to setData(This, Data, []).

setData(This::wxImage(), Data::binary(), Options::[Option]) -> ok

Types:

Option = {static_data, bool()}

setData(This::wxImage(), Data::binary(), New_width::integer(), New_height::integer()) -> ok

setData(This::wxImage(), Data::binary(), New_width::integer(), New_height::integer(), Options::[Option]) -> ok

Types:

Option = {static_data, bool()}

setMask(This::wxImage()) -> ok

Equivalent to setMask(This, []).

setMask(This::wxImage(), Options::[Option]) -> ok

Types:

Option = {mask, bool()}

setMaskColour(This::wxImage(), R::integer(), G::integer(), B::integer()) -> ok

setMaskFromImage(This::wxImage(), Mask::wxImage(), Mr::integer(), Mg::integer(), Mb::integer()) -> bool()

setOption(This::wxImage(), Name::string(), X::integer() | string()) -> ok

See external documentation.
Alternatives:

setOption(This::wxImage(), Name::string(), Value::integer()) -> ok

setOption(This::wxImage(), Name::string(), Value::string()) -> ok

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

setRGB(This::wxImage(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, R::integer(), G::integer(), B::integer()) -> ok

setRGB(This::wxImage(), X::integer(), Y::integer(), R::integer(), G::integer(), B::integer()) -> ok

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

Destroys this object, do not use object again