←Select platform

CopyPaletteTo Method

Summary

Copies the palette of this RasterImage into a destination image.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public void CopyPaletteTo( 
   RasterImage destImage 
) 
Public Sub CopyPaletteTo( _ 
   ByVal destImage As Leadtools.RasterImage _ 
)  
public void CopyPaletteTo(  
   Leadtools.RasterImage destImage 
) 
- (BOOL)copyPaletteTo:(LTRasterImage *)dstImage error:(NSError **)error 
public void copyPaletteTo(RasterImage destImage) 
 function Leadtools.RasterImage.CopyPaletteTo(  
   destImage  
) 
public: 
void CopyPaletteTo(  
   Leadtools.RasterImage^ destImage 
)  

Parameters

destImage
The destination image into which the palette will be copied. You must have a valid image loaded for this method to work.

Remarks

Only the palette the image is copied. destImage must be allocated and must be 8-bit or less before this method is called. The source image (this RasterImage object and destImage must have the same BitsPerPixel. destImage existing palette will be destroyed before the copy is made.

Example

For an example, refer to CopyDataCommand.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly