table of contents
- bullseye 1:23.2.6+dfsg-1+deb11u1
- testing 1:25.2.3+dfsg-1
- unstable 1:25.2.3+dfsg-1
- experimental 1:26.0.1+dfsg-1
wxImage(3erl) | Erlang Module Definition | wxImage(3erl) |
NAME¶
wxImage - See external documentation: wxImage.
DESCRIPTION¶
See external documentation: wxImage.
All (default) image handlers are initialized.
DATA TYPES¶
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()
See external documentation.
new(Name) -> wxImage()
Types:
Equivalent to new(Name, []).
new(Width, Height) -> wxImage()
new(Name, Height::[Option]) -> wxImage()
Types:
Height = integer()
Name = unicode:chardata()
Option = {type, integer()} | {index, integer()}
See external documentation.
Also:
new(Name, [Option]) -> wxImage() when
Name::unicode:chardata(),
Option :: {'type', integer()}
| {'index', integer()}.
new(Width, Height, Data) -> wxImage()
new(Width, Height, Data::[Option]) -> wxImage()
new(Name, Mimetype, Data::[Option]) -> wxImage()
Types:
Height = integer()
Data = binary()
Width = integer()
Height = integer()
Option = {clear, boolean()}
Name = unicode:chardata()
Mimetype = unicode:chardata()
Option = {index, integer()}
See external documentation.
Also:
new(Width, Height, [Option]) -> wxImage() when
Width::integer(), Height::integer(),
Option :: {'clear', boolean()};
(Name, Mimetype, [Option]) -> wxImage() when
Name::unicode:chardata(), Mimetype::unicode:chardata(),
Option :: {'index', integer()}.
new(Width, Height, Data, Alpha) -> wxImage()
new(Width, Height, Data, Alpha::[Option]) -> wxImage()
Types:
Height = integer()
Data = binary()
Alpha = binary()
Width = integer()
Height = integer()
Data = binary()
Option = {static_data, boolean()}
See external documentation.
Also:
new(Width, Height, Data, [Option]) -> wxImage() when
Width::integer(), Height::integer(), Data::binary(),
Option :: {'static_data', boolean()}.
new(Width, Height, Data, Alpha, Options::[Option]) ->
wxImage()
Types:
Height = integer()
Data = binary()
Alpha = binary()
Option = {static_data, boolean()}
See external documentation.
blur(This, Radius) -> wxImage()
Types:
Radius = integer()
See external documentation.
blurHorizontal(This, Radius) -> wxImage()
Types:
Radius = integer()
See external documentation.
blurVertical(This, Radius) -> wxImage()
Types:
Radius = integer()
See external documentation.
convertAlphaToMask(This) -> boolean()
Types:
Equivalent to convertAlphaToMask(This, []).
convertAlphaToMask(This, Options::[Option]) -> boolean()
Types:
Option = {threshold, integer()}
See external documentation.
convertToGreyscale(This) -> wxImage()
Types:
Equivalent to convertToGreyscale(This, []).
convertToGreyscale(This, Options::[Option]) -> wxImage()
Types:
Option = {lr, number()} | {lg, number()} | {lb, number()}
See external documentation.
convertToMono(This, R, G, B) -> wxImage()
Types:
R = integer()
G = integer()
B = integer()
See external documentation.
copy(This) -> wxImage()
Types:
See external documentation.
create(This, Width, Height) -> boolean()
Types:
Width = integer()
Height = integer()
Equivalent to create(This, Width, Height, []).
create(This, Width, Height, Data) -> boolean()
create(This, Width, Height, Data::[Option]) -> boolean()
Types:
Width = integer()
Height = integer()
Data = binary()
This = wxImage()
Width = integer()
Height = integer()
Option = {clear, boolean()}
See external documentation.
Also:
create(This, Width, Height, [Option]) -> boolean() when
This::wxImage(), Width::integer(), Height::integer(),
Option :: {'clear', boolean()}.
create(This, Width, Height, Data, Alpha) -> boolean()
create(This, Width, Height, Data, Alpha::[Option]) -> boolean()
Types:
Width = integer()
Height = integer()
Data = binary()
Alpha = binary()
This = wxImage()
Width = integer()
Height = integer()
Data = binary()
Option = {static_data, boolean()}
See external documentation.
Also:
create(This, Width, Height, Data, [Option]) -> boolean() when
This::wxImage(), Width::integer(), Height::integer(), Data::binary(),
Option :: {'static_data', boolean()}.
create(This, Width, Height, Data, Alpha, Options::[Option])
-> boolean()
Types:
Width = integer()
Height = integer()
Data = binary()
Alpha = binary()
Option = {static_data, boolean()}
See external documentation.
Destroy(This) -> ok
Types:
See external documentation.
findFirstUnusedColour(This) -> Result
Types:
This = wxImage()
Equivalent to findFirstUnusedColour(This, []).
findFirstUnusedColour(This, Options::[Option]) -> Result
Types:
This = wxImage()
Option = {startR, integer()} | {startG, integer()} | {startB, integer()}
See external documentation.
getImageExtWildcard() -> unicode:charlist()
See external documentation.
getAlpha(This) -> binary()
Types:
See external documentation.
getAlpha(This, X, Y) -> integer()
Types:
X = integer()
Y = integer()
See external documentation.
getBlue(This, X, Y) -> integer()
Types:
X = integer()
Y = integer()
See external documentation.
getData(This) -> binary()
Types:
See external documentation.
getGreen(This, X, Y) -> integer()
Types:
X = integer()
Y = integer()
See external documentation.
getImageCount(Name) -> integer()
Types:
Equivalent to getImageCount(Name, []).
getImageCount(Name, Options::[Option]) -> integer()
Types:
Option = {type, wx:wx_enum()}
See external documentation.
Type = ?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
getHeight(This) -> integer()
Types:
See external documentation.
getMaskBlue(This) -> integer()
Types:
See external documentation.
getMaskGreen(This) -> integer()
Types:
See external documentation.
getMaskRed(This) -> integer()
Types:
See external documentation.
getOrFindMaskColour(This) -> Result
Types:
This = wxImage()
See external documentation.
getPalette(This) -> wxPalette:wxPalette()
Types:
See external documentation.
getRed(This, X, Y) -> integer()
Types:
X = integer()
Y = integer()
See external documentation.
getSubImage(This, Rect) -> wxImage()
Types:
Rect = {X::integer(), Y::integer(), W::integer(), H::integer()}
See external documentation.
getWidth(This) -> integer()
Types:
See external documentation.
hasAlpha(This) -> boolean()
Types:
See external documentation.
hasMask(This) -> boolean()
Types:
See external documentation.
getOption(This, Name) -> unicode:charlist()
Types:
Name = unicode:chardata()
See external documentation.
getOptionInt(This, Name) -> integer()
Types:
Name = unicode:chardata()
See external documentation.
hasOption(This, Name) -> boolean()
Types:
Name = unicode:chardata()
See external documentation.
initAlpha(This) -> ok
Types:
See external documentation.
initStandardHandlers() -> ok
See external documentation.
isTransparent(This, X, Y) -> boolean()
Types:
X = integer()
Y = integer()
Equivalent to isTransparent(This, X, Y, []).
isTransparent(This, X, Y, Options::[Option]) ->
boolean()
Types:
X = integer()
Y = integer()
Option = {threshold, integer()}
See external documentation.
loadFile(This, Name) -> boolean()
Types:
Name = unicode:chardata()
Equivalent to loadFile(This, Name, []).
loadFile(This, Name, Options::[Option]) -> boolean()
Types:
Name = unicode:chardata()
Option = {type, integer()} | {index, integer()}
See external documentation.
loadFile(This, Name, Mimetype, Options::[Option]) ->
boolean()
Types:
Name = unicode:chardata()
Mimetype = unicode:chardata()
Option = {index, integer()}
See external documentation.
ok(This) -> boolean()
Types:
See external documentation.
removeHandler(Name) -> boolean()
Types:
See external documentation.
mirror(This) -> wxImage()
Types:
Equivalent to mirror(This, []).
mirror(This, Options::[Option]) -> wxImage()
Types:
Option = {horizontally, boolean()}
See external documentation.
replace(This, R1, G1, B1, R2, G2, B2) -> ok
Types:
R1 = integer()
G1 = integer()
B1 = integer()
R2 = integer()
G2 = integer()
B2 = integer()
See external documentation.
rescale(This, Width, Height) -> wxImage()
Types:
Width = integer()
Height = integer()
Equivalent to rescale(This, Width, Height, []).
rescale(This, Width, Height, Options::[Option]) ->
wxImage()
Types:
Width = integer()
Height = integer()
Option = {quality, wx:wx_enum()}
See external documentation.
Quality = integer
resize(This, Size, Pos) -> wxImage()
Types:
Size = {W::integer(), H::integer()}
Pos = {X::integer(), Y::integer()}
Equivalent to resize(This, Size, Pos, []).
resize(This, Size, Pos, Options::[Option]) -> wxImage()
Types:
Size = {W::integer(), H::integer()}
Pos = {X::integer(), Y::integer()}
Option = {r, integer()} | {g, integer()} | {b, integer()}
See external documentation.
rotate(This, Angle, Centre_of_rotation) -> wxImage()
Types:
Angle = number()
Centre_of_rotation = {X::integer(), Y::integer()}
Equivalent to rotate(This, Angle, Centre_of_rotation, []).
rotate(This, Angle, Centre_of_rotation, Options::[Option])
-> wxImage()
Types:
Angle = number()
Centre_of_rotation = {X::integer(), Y::integer()}
Option = {interpolating, boolean()} | {offset_after_rotation, {X::integer(), Y::integer()}}
See external documentation.
rotateHue(This, Angle) -> ok
Types:
Angle = number()
See external documentation.
rotate90(This) -> wxImage()
Types:
Equivalent to rotate90(This, []).
rotate90(This, Options::[Option]) -> wxImage()
Types:
Option = {clockwise, boolean()}
See external documentation.
saveFile(This, Name) -> boolean()
Types:
Name = unicode:chardata()
See external documentation.
saveFile(This, Name, Type) -> boolean()
saveFile(This, Name, Mimetype) -> boolean()
Types:
Name = unicode:chardata()
Type = integer()
This = wxImage()
Name = unicode:chardata()
Mimetype = unicode:chardata()
See external documentation.
Also:
saveFile(This, Name, Mimetype) -> boolean() when
This::wxImage(), Name::unicode:chardata(), Mimetype::unicode:chardata().
scale(This, Width, Height) -> wxImage()
Types:
Width = integer()
Height = integer()
Equivalent to scale(This, Width, Height, []).
scale(This, Width, Height, Options::[Option]) ->
wxImage()
Types:
Width = integer()
Height = integer()
Option = {quality, wx:wx_enum()}
See external documentation.
Quality = integer
size(This, Size, Pos) -> wxImage()
Types:
Size = {W::integer(), H::integer()}
Pos = {X::integer(), Y::integer()}
Equivalent to size(This, Size, Pos, []).
size(This, Size, Pos, Options::[Option]) -> wxImage()
Types:
Size = {W::integer(), H::integer()}
Pos = {X::integer(), Y::integer()}
Option = {r, integer()} | {g, integer()} | {b, integer()}
See external documentation.
setAlpha(This, Alpha) -> ok
Types:
Alpha = binary()
Equivalent to setAlpha(This, Alpha, []).
setAlpha(This, Alpha, Options::[Option]) -> ok
Types:
Alpha = binary()
Option = {static_data, boolean()}
See external documentation.
setAlpha(This, X, Y, Alpha) -> ok
Types:
X = integer()
Y = integer()
Alpha = integer()
See external documentation.
setData(This, Data) -> ok
Types:
Data = binary()
Equivalent to setData(This, Data, []).
setData(This, Data, Options::[Option]) -> ok
Types:
Data = binary()
Option = {static_data, boolean()}
See external documentation.
setData(This, Data, New_width, New_height) -> ok
Types:
Data = binary()
New_width = integer()
New_height = integer()
Equivalent to setData(This, Data, New_width, New_height, []).
setData(This, Data, New_width, New_height, Options::[Option])
-> ok
Types:
Data = binary()
New_width = integer()
New_height = integer()
Option = {static_data, boolean()}
See external documentation.
setMask(This) -> ok
Types:
Equivalent to setMask(This, []).
setMask(This, Options::[Option]) -> ok
Types:
Option = {mask, boolean()}
See external documentation.
setMaskColour(This, R, G, B) -> ok
Types:
R = integer()
G = integer()
B = integer()
See external documentation.
setMaskFromImage(This, Mask, Mr, Mg, Mb) -> boolean()
Types:
Mask = wxImage()
Mr = integer()
Mg = integer()
Mb = integer()
See external documentation.
setOption(This, Name, Value) -> ok
setOption(This, Name, Value) -> ok
Types:
Name = unicode:chardata()
Value = integer()
This = wxImage()
Name = unicode:chardata()
Value = unicode:chardata()
See external documentation.
Also:
setOption(This, Name, Value) -> 'ok' when
This::wxImage(), Name::unicode:chardata(), Value::unicode:chardata().
setPalette(This, Palette) -> ok
Types:
Palette = wxPalette:wxPalette()
See external documentation.
setRGB(This, Rect, R, G, B) -> ok
Types:
Rect = {X::integer(), Y::integer(), W::integer(), H::integer()}
R = integer()
G = integer()
B = integer()
See external documentation.
setRGB(This, X, Y, R, G, B) -> ok
Types:
X = integer()
Y = integer()
R = integer()
G = integer()
B = integer()
See external documentation.
destroy(This::wxImage()) -> ok
Destroys this object, do not use object again
AUTHORS¶
<>
wx 1.9.2 |