FZ_FormBase.GetDensityProfile

Gets the density value within the rectangle of the image

Public Shared Function GetDensityProfile( _
    ByVal unitNo As Integer, _
    ByVal imageNo As Integer, _
    ByVal imageChannel As Integer, _
    ByVal rectangle As System.Drawing.Rectangle, _
    ByRef profile() As Integer _
) As Integer

Parameters
unitNo
Unit-number of processing item related to image input and image conversion
Input
imageNo
Image number
Input
imageChannel
Image channel number for RGB color image(R:0, G:1, and B:2). Ignored for black and white image. )
Input
rectangle
Targeted rectangular area. The maximum size is 4096 pix.
Input
profile
Array to store density value. When the function is executed, it is resized.
Output

Return Value
Returns 0 when moving a processing unit succeeded.
Otherwise returns a non-zero value.

Description
Gets the density value within the rectangle of the image.

Example
    Private Sub DisplayUpdate(ByVal sender As Object, ByVal e As System.EventArgs)

        ' Gets the horizontal run length data.
        unitNo = 0
        imageNo = 0
        color = 0
        rect.X = 0 : rect.Y = 100 : rect.Width = XSIZE : rect.Height = 100
        GetDensityProfile(unitNo, imageNo, color, rect, profile)

    End Sub