Computes the colors histogram of a 8bpp indexed GdPicture image.
public GdPictureStatus HistogramGet8Bpp( int ImageID, ref int ArHistoPal );
Public Function HistogramGet8Bpp( ByVal ImageID As Integer, ByRef ArHistoPal() As Integer ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
ArHistoPal |
Output parameter. Array of 256 entries containing the color palette histogram data. |
A member of the GdPictureStatus enumeration.
This function works only with 8bpp image.
Dim oGdPictureImaging As New GdPictureImaging Dim arHisto8(0 To 255) As Integer Dim ImageID As Integer oGdPictureImaging.SetLicenseNumber("XXX") 'Replace XXX by a demo or commercial license key ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image.tif") oGdPictureImaging.HistogramGet8Bpp(ImageID, arHisto8) oGdPictureImaging.ReleaseGdPictureImage(ImageID)
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|