You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Color Depth Conversion & Colors Reduction > ConvertTo4BppPal Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.ConvertTo4BppPal Method

Converts a GdPicture image to a 4-bits indexed color image using custom color palette. 

The color table has a maximum of 16 entries.

C#
public GdPictureStatus ConvertTo4BppPal(
    int ImageID, 
    ref Color ColorEntries
);
Visual Basic
Public Function ConvertTo4BppPal(
    ByVal ImageID As Integer, 
    ByRef ColorEntries() As Color
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
ColorEntries 
Array of Color Objects. All color entries of the palette.  
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.