Computes in one call, alpha, red, green and blue channel histograms of a GdPicture image.
public GdPictureStatus HistogramGetARGB( int ImageID, ref int arHistoA, ref int arHistoR, ref int arHistoG, ref int arHistoB );
Public Function HistogramGetARGB( ByVal ImageID As Integer, ByRef arHistoA() As Integer, ByRef arHistoR() As Integer, ByRef arHistoG() As Integer, ByRef arHistoB() As Integer ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
arHistoA |
Output parameter. Array of 256 entries containing the alpha channel histogram data. |
|
arHistoR |
Output parameter. Array of 256 entries containing the red channel histogram data. |
|
arHistoG |
Output parameter. Array of 256 entries containing the green channel histogram data. |
|
arHistoB |
Output parameter. Array of 256 entries containing the blue channel histogram data. |
A member of the GdPictureStatus enumeration.
Dim oGdPictureImaging As New GdPictureImaging Dim arHistoA(0 To 255) As Integer Dim arHistoR(0 To 255) As Integer Dim arHistoG(0 To 255) As Integer Dim arHistoB(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.HistogramGetARGB(ImageID, arHistoA, arHistoR, arHistoG, arHistoB) oGdPictureImaging.ReleaseGdPictureImage(ImageID)
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|