LBitmap::Multiply

#include "ltwrappr.h"

virtual L_INT LBitmap::Multiply(uFactor)

L_UINT uFactor;

/* multiplication factor */

Increases or decreases the brightness in the bitmap by multiplying the colors in the specified bitmap by a value equal to the uFactor value divided by 100.

Parameter

Description

uFactor

An integer which represents the factor to be used when multiplying image values. The factor used is equal to uFactor/100.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function is used to increase or decrease the brightness in the bitmap by multiplying the colors in the specified bitmap by a value equal to the uFactor value divided by 100. For Example, if uFactor is 131, the colors in the specified bitmap will be multiplied by 1.31.

This function supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

Required DLLs and Libraries

LTIMG

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LBitmap::BricksTexture, LBitmap::Canvas, LBitmap::DisplaceMap, LBitmap::Fragment, LBitmap::Vignette, LBitmap::ChangeIntensity, LBitmap::GammaCorrect, LBitmap::ChangeContrast, LBitmap::HistoContrast, LBitmap::StretchIntensity, LBitmap::RemapIntensity, LBitmap::Invert, LBitmap::ChangeHue, LBitmap::ChangeSaturation, LBitmapBase::Fill, LBitmapBase::GetPixelColor, LBitmapBase::PutPixelColor, LBitmap::GetHistogram, LBitmap::WindowLevel, LDialogImageEffect::DoModalMultiply, LBitmap::AddWeighted

Topics:

Changing Brightness and Contrast

 

Raster Image Functions: Modifying Intensity Values

 

Raster Image Functions: Changing Brightness and Contrast

Example

void MyTestFunction(LAnimationWindow * pAniWnd) 
{
   pAniWnd->Multiply(80); 
}