Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
CopyPaletteTo Method
See Also 
Leadtools Namespace > RasterImage Class : CopyPaletteTo Method




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

Syntax

Visual Basic (Declaration) 
Public Sub CopyPaletteTo( _
   ByVal destImage As RasterImage _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim destImage As RasterImage
 
instance.CopyPaletteTo(destImage)
C# 
public void CopyPaletteTo( 
   RasterImage destImage
)
Managed Extensions for C++ 
public: void CopyPaletteTo( 
   RasterImage* destImage
) 
C++/CLI 
public:
void CopyPaletteTo( 
   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.

Example

For an example, refer to CopyDataCommand.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also