Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LBitmapBase::CopyPalette

Show in webframe

#include "ltwrappr.h"

virtual L_INT LBitmapBase::CopyPalette(pLSrcBitmap)

LBitmapBase * pLSrcBitmap;

/* pointer to the source bitmap handle */

Copies the palette of a source bitmap and places it into a destination bitmap. Only the palette field of the bitmap handle is copied.

Parameter

Description

pLSrcBitmap

Pointer to the source bitmap handle. You must have a valid image loaded into the bitmap for this function to work.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this function.

The destination bitmap must be allocated and must be 8-bit or less before this function is called. The source bitmap and destination bitmap must have the same bits per pixel.

The destination bitmaps existing palette will be destroyed before the copy is made.

When the destination bitmap is freed, the palette will also be destroyed.

Required DLLs and Libraries

LTKRN

LTWVC

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

Platforms

Win32, x64.

See Also

Functions:

LBitmapBase::CopyData, LBitmapBase::CopyHandle

Topics:

Raster Image Functions: Copying Images

 

Raster Image Functions: Palettes

 

Raster Image Functions: Using the Clipboard

Example

 

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.