You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Histogram Computing > HistogramGetARGB Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.HistogramGetARGB Method

Computes in one call, alpha, red, green and blue channel histograms of a GdPicture image.

C#
public GdPictureStatus HistogramGetARGB(
    int ImageID, 
    ref int arHistoA, 
    ref int arHistoR, 
    ref int arHistoG, 
    ref int arHistoB
);
Visual Basic
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
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.  
Returns

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.