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

Computes the green channel histogram of a GdPicture image.

C#
public GdPictureStatus HistogramGetGreen(
    int ImageID, 
    ref int arHistoG
);
Visual Basic
Public Function HistogramGetGreen(
    ByVal ImageID As Integer, 
    ByRef arHistoG() As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
arHistoG 
Output parameter. Array of 256 entries containing the green channel histogram data.  
Returns

A member of the GdPictureStatus enumeration.

Dim oGdPictureImaging As New GdPictureImaging
Dim arHistoG(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.HistogramGetGreen(ImageID, arHistoG)
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.