Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
gb.media.form
gb.memcached
gb.mime
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

Image (gb.gui)

This class reimplements Image in gb.sdl2.
This class is
Creates a new image.
creatable
.
This class acts like a
Returns the color of the (x, y) pixel.
read
/
Sets the color of the (x, y) pixel.
write
array.
Static properties Static methods Constants
Return or set if debugging mode is enabled.
Debug  
FromString  
Create a gradient image.
Gradient  
Load  
Constant for specifying all color channels.
All  
Constant for specifying the alpha color channel.
Alpha  
Constant for specifying the blue color channel.
Blue  
Constant used for specifying a cross gradient.
Cross  
Constant used for specifying a diagonal gradient.
Diagonal  
Constant used for specifying an elliptic gradient.
Elliptic  
Constant for a gaussian noise.
Gaussian  
Constant for specifying the green color channel.
Green  
Constant used for specifying an horizontal gradient.
Horizontal  
Constant for an impulse noise.
Impulse  
Constant for a Laplacian noise.
Laplacian  
Constant for a multiplicative gaussian noise.
Multiplicative  
Constant used for specifying a pipe cross gradient.
PipeCross  
Constant for a Poisson noise.
Poisson  
This constants represents an image whose pixels are encoded in premultiplied ARGB format.
Premultiplied  
Constant used for specifying a pyramidal gradient.
Pyramid  
Constant used for specifying a rectangular gradient.
Rectangle  
Constant for specifying the red color channel.
Red  
This constants represent an image whose pixels are encoded in ARGB format.
Standard  
Constant for an uniform noise.
Uniform  
Constant used for specifying a vertical gradient.
Vertical  
Properties Methods
Returns a pointer to the image data.
Data  
Returns the depth of the image.
Depth  
Return the internal image format as a string.
Format  
A synonymous for the Height property.
H  
Returns the height of the image.
Height  
Picture  
Return a copy the image pixels colors as an array of 32 bits integers.
Pixels  
A synonymous for the Width property.
W  
Returns the width of the image.
Width  
Modify the balance of image brightness, contrast and gamma.
Balance  
Start a global image balance.
BeginBalance  
Create a blurred copy of the image and return it.
Blur  
Adjust the image brightness.
Brightness  
Produce a neat little "charcoal" effect.
Charcoal  
Clears the image.
Clear  
Colorizes the image contents by using the specified color.
Colorize  
Adjust the image contrast.
Contrast  
Returns a copy of the image, or a copy of a part of it
Copy  
Desaturate an image, i.e. convert it to grayscale.
Desaturate  
Minimize speckle noise in the source image using the 8 hull algorithm.
Despeckle  
Copy the alpha channel of Image into the current image.
DrawAlpha  
Copy the Image image inside the current image.
DrawImage  
Detect edges in an image using pixel neighborhoods and an edge detection mask.
Edge  
Emboss the source image.
Emboss  
End a global image balance.
EndBalance  
Perform histogram equalization on the reference image.
Equalize  
Create an alpha channel into the image by erasing the specified color.
Erase  
Fade an image to a certain background color.
Fade  
Fills the image with a specified color.
Fill  
Fill the specified rectangle with the specified color.
FillRect  
Recolor an image.
Flatten  
Blur an image and return itself.
Fuzzy  
Adjust the image gamma.
Gamma  
Convert an image to grayscale.
Gray  
Create and return an histogram of the image.
Histogram  
Adjust the image hue.
Hue  
Implode an image by a specified percent.
Implode  
Either brighten or dim the image by a specified percent.
Intensity  
Invert an image, or only some of its channels.
Invert  
Adjust the image lightness.
Lightness  
Multiply each color component of each pixel by the color component of the specified color.
Mask  
Returns the image vertically and/or horizontally mirrored.
Mirror  
Add some noise to an image.
Noise  
Normalize the pixel values to span the full range of color values.
Normalize  
Produce an oil painting effect.
OilPaint  
Change the opacity of an image and return it.
Opacity  
PaintImage  
Blend the specified rectangle with the specified color.
PaintRect  
Replaces a color by another one.
Replace  
Resizes the image.
Resize  
Rotate  
Rotate an image 90° left, and return it.
RotateLeft  
Rotate an image 90° right, and return it.
RotateRight  
Adjust the image saturation.
Saturation  
Save  
Scroll a rectangle of size (Width, Height) at the (X, Y) location within the current image by the (DX, DY) distance in pixels.
Scroll  
Shade the image using a distance light source.
Shade  
Create a sharpened copy of the image and return it.
Sharpen  
Produce a solarization effect seen when exposing a photographic film to light during the development process.
Solarize  
Randomly displace pixels.
Spread  
Stretch  
Swirl the image by a specified amount
Swirl  
Threshold the reference image.
Threshold  
Create a new version of the image that will tile seamlessly horizontally and vertically if used as a tile (i.e. drawn multiple times horizontally and vertically), and return it.
Tile  
Make the image transparent by using the specified Color.
Transparent  
Modifiy the pixels along a sine wave.
Wave