anyKode Marilou
ContentsIndexHome
PreviousUpNext
Image Methods

The methods of the Image class are listed here.

 
Name 
Description 
 
Computes the number of bits per pixel according to the format parameter. 
 

Computes the buffer bytes size required to store an image according to the parameters. Calculation takes in account the 32 bits alignment.

 

 
Computes the size in bytes of an image line according to the parameter. The size holds account of alignment on 32 bits. 
 
Initialize current instance creating a valid image. 
 

Initialize current instance from a buffer.

 

 
Initialize current instance from a buffer. 
 
HDC GetScreenHDC(void);
 

CreateImageBitmap builds a HBITMAP handle (Windows) with part of the image contained in the object. The HBITMAP is compatible with the SDK Win32 of Windows. 

 

 
 
 
This is DisplayBitmap, a member of class Image. 
 
Flips the image instance. 
 
Create an antialiased 2X copy of the image. 
 
Create an antialiased 4X copy of the image. 
 

Destroy allocated resources.

 

 
Fills a BITMAPINFO structure with the instance image information. 
 
Fills a BITMAPINFO structure with the instance image information. BITMAPINFO contains a grey level pallet. 
 

GetBitsPerPixel returns the bits count required to create 1 pixel.

 

 
Getting the average color of an image. 
 
GetHeight returns the number of pixels contained in an image column. 
 

GetImageBits returns a pointer on the raw data of the image.

 

 
GetImageByteSize returns the size in bytes of the image buffer (GetImageBits)
 
GetImageBits returns a pointer on the raw data of the image for a pecified line. 
 

GetLineByteSize returns the bytes count of an image line.

 

 
 
 
Getting the pixel at the specified location. 
 
GetSurfaceFormat returns the current image format. 
 

GetWidth returns number of pixels contained in an image line.

 

 
IsValid indicates if the image is valid. 
 

Allows to record the image of the instance in a file. The recording is done in the actual image format.

 

 
Setting the pixel's color. 
 
Setting the pixel's color. 
 
Getting image information string. 
 

ToHorizontalFlip created a new object of the current image, returned horizontally. This operation does not affect the main object.

 

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!