ColorPaletteHelper.GetCloseImagePalette
GetCloseImagePalette(RasterImage, int)
Gets color palette from raster image (palletizes image) in case the image does not have one. In case palette exists it will be used instead performing calculations.
public static IColorPalette GetCloseImagePalette(RasterImage image, int entriesCount)
Parameter | Type | Description |
---|---|---|
image | RasterImage | The raster image. |
entriesCount | Int32 | The desired entries count. |
Return Value
The color palette which starts with the most frequent colors from the image and contains entriesCount entries.
See Also
- interface IColorPalette
- class RasterImage
- class ColorPaletteHelper
- namespace Aspose.PSD
- assembly Aspose.PSD
GetCloseImagePalette(RasterImage, Rectangle, int)
Gets color palette from raster image (palletizes image) in case the image does not have one. In case palette exists it will be used instead performing calculations.
public static IColorPalette GetCloseImagePalette(RasterImage image, Rectangle destBounds,
int entriesCount)
Parameter | Type | Description |
---|---|---|
image | RasterImage | The raster image. |
destBounds | Rectangle | The destination image bounds. |
entriesCount | Int32 | The desired entries count. |
Return Value
The color palette which starts with the most frequent colors from the image and contains entriesCount entries.
See Also
- interface IColorPalette
- class RasterImage
- struct Rectangle
- class ColorPaletteHelper
- namespace Aspose.PSD
- assembly Aspose.PSD
GetCloseImagePalette(RasterImage, Rectangle, int, bool)
Gets color palette from raster image (palletizes image) in case the image does not have one. In case palette exists it will be used instead performing calculations.
public static IColorPalette GetCloseImagePalette(RasterImage image, Rectangle destBounds,
int entriesCount, bool useImagePalette)
Parameter | Type | Description |
---|---|---|
image | RasterImage | The raster image. |
destBounds | Rectangle | The destination image bounds. |
entriesCount | Int32 | The desired entries count. |
useImagePalette | Boolean | If set, it will use its own image palette if available |
Return Value
The color palette which starts with the most frequent colors from the image and contains entriesCount entries.
See Also
- interface IColorPalette
- class RasterImage
- struct Rectangle
- class ColorPaletteHelper
- namespace Aspose.PSD
- assembly Aspose.PSD