Description of the functions library Image Library FX and examples of their work

Function SetImgBrightness24b (bndl: int64; Value: integer): boolean - allows you to add / subtract the brightness of the image. Returns True if the process is successfully completed.

It has two input parameters:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;
  • Value - is an integer in the range from -200 to 200.

The result of the function:

ImageLibFX Brigth

 

Function SetImgContrast24b (bndl: int64; Value: integer): boolean - allows you to add / subtract the contrast of the image. Returns True if the process is successfully completed.

It has two input parameters:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;
  • Value - is an integer in the range from -50 to 50.

The result of the function:

ImageLibFX Contrast

 

Function SetImgGamma24b(bHndl: int64; Value:double):boolean - It lets you adjust the gamma the image. Returns True if the process is successfully completed.

It has two input parameters:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;
  • Value - It takes a real value in the range of 0.01 to 7.00. Start position 1.

The result of the function:

ImageLibFX Gamma

 

Function SetImgSepia24b(bHndl: int64; Value:integer):boolean - add sepia effect at the image. Returns True if the process is successfully completed.

It has two input parameters:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;
  • Value - It is an integer ranging from 0 to 100.

The result of the function:

ImageLibFX Sepia

 

Function ImgConvertToGrayScale24b(bHndl: int64):boolean - converts the image to grayscale. Returns True if the process is successfully completed.

It has one input parameter:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;

The result of the function:

ImageLibFX GrayScale

 

Function ImgRGBInvertColor24b(bHndl: int64):boolean - It produces an inversion colors of the image. Returns True if the process is successfully completed.

It has one input parameter:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;

The result of the function:

ImageLibFX Invert Color

 

Function AddImgNoise24b(bHndl: int64; Amount:byte; GrayScale:Boolean):boolean - add the image "noise". Returns True if the process is successfully completed.

It has three input parameters:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;
  • Amount - is an integer ranging from 1 to 200;
  • GrayScale - If true, the noise superimposed grayscale. If false, then the noise in color.

The result of the function:

ImageLibFX Noise Color    ImageLibFX Noise GrayScale

 

Function AddImgPixelEffect24b(bHndl:int64; pxW,pxH:byte):boolean - add image effect "pixels". Returns True if the process is successfully completed.

It has three input parameters:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;
  • pxW,pxH - takes an integer value ranging from 2 to 25.

The result of the function:

ImageLibFX Pixels

 

Function ImgRGBOnOff24b(bHndl: int64; R,G,B:boolean; NullColor:byte):boolean - It allows you to turn off the color channels RGB. Returns True if the process is successfully completed.

It has five input parameters:

  • bHndl - Handle of the raster, for example, or TBitmap.Handle TImage.Picture.Bitmap.Handle;
  • R,G,B - If TRUE, the color channel is displayed;
  • NullColor - It takes a value from 0 to 255. Zero-channel color. It is recommended to use a 0 (black channel).

The result of the function:

 ImageLibFX RGB OnOff    ImageLibFX RGB OnOff    ImageLibFX RGB OnOff    ImageLibFX RGB OnOff    ImageLibFX RGB OnOff

 

Note: To avoid flicker when displaying on the form of Delphi or TImage, you must activate the feature form DoubleBuffered!!! 

 

 

Translate with Google-translater

Comments

No Avatar
what is life quote (not verified) on Wed, 06/01/2016 - 01:36
Hurrah, that's what I was searching for, what a stuff! existing here at this website, thanks admin of this site.|

No Avatar
Buildbox Crack ... (not verified) on Mon, 06/20/2016 - 06:46
I am glad to be a visitant of this gross weblog ! , thanks for this rare information! .

Add new comment