LBitmapBase::ChangeHeight

#include "ltwrappr.h"

virtual L_INT LBitmapBase::ChangeHeight(nHeight)

L_INT nHeight;

/* the new height of the bitmap */

Changes the height of the bitmap.

Parameter

Description

nHeight

The new height of the bitmap.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Call this function to change the height of the bitmap.

Required DLLs and Libraries

LTDIS
LTFIL

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

Elements:

LBitmapBase::Access, LBitmapBase::Allocate, LBitmapBase::Release, LBitmapBase::PutRow, LBitmapBase::PutRowCol, LBitmapBase::PutRowCompressed, LBitmapBase::PutRowColCompressed

Topics:

Raster Image Functions: Loading Files

 

Raster Image Functions: Redirecting Input and Output

 

Raster Image Functions: Input and Output

 

Loading and Saving Images

Example

LBitmapBase MyBitmap;

MyBitmap.SetFileName(TEXT("Image1.cmp"));
MyBitmap.Load();

if(MyBitmap.IsAllocated())
{
   MyBitmap.Access();  //add 50 lines to the image
   MyBitmap.ChangeHeight(MyBitmap.GetHeight()+50);
   MyBitmap.Release();
}