comp • gb.qt4 • image

Image (gb.qt4)

This class implements an image.

The image contents are stored in the process memory, not in the display server like a Picture.

To get or set individual pixel values, you can treat the Image class as a two-dimensional array: Image[x,y] would refer to the pixel at position (x, y) within the image.

This class reimplements Image in gb.image.
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  
Loads an image from a file.
Load  
This constants represents an image whose pixels are encoded in premultiplied ARGB format.
Premultiplied  
This constants represent an image whose pixels are encoded in ARGB format.
Standard  

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  
Converts the image into a picture, and returns it.
Picture  
Return 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  
Start a global image balance.
BeginBalance  
Adjust the image brightness.
Brightness  
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  
Copy the alpha channel of Image into the current image.
DrawAlpha  
Copy the Image image inside the current image.
DrawImage  
End a global image balance.
EndBalance  
Create an alpha channel into the image by erasing the specified color.
Erase  
Fills the image with a specified color.
Fill  
Fill the specified rectangle with the specified color.
FillRect  
Blur an image and return itself.
Fuzzy  
Adjust the image gamma.
Gamma  
Convert an image to grayscale.
Gray  
Adjust the image hue.
Hue  
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  
Change the opacity of an image and return it.
Opacity  
Blend the Image image inside the current image.
PaintImage  
Blend the specified rectangle with the specified color.
PaintRect  
Replaces a color by another one.
Replace  
Resizes the image.
Resize  
Returns a rotated copy of the image.
Rotate  
Rotate an image 90° left, and return it.
RotateLeft  
Rotate an image 90° right, and return it.
RotateRight  
Adjust the image saturation.
Saturation  
Saves the image to a file. The file extension of Path will give the format of the saved image.
Save  
Returns a stretched copy of the image.
Stretch  
Make the image transparent by using the specified Color.
Transparent