LineProfile method (Main Control)
Builder Syntax |
int LineProfile(const TPoint & FirstPoint, const TPoint &SecondPoint, L_PINT &pRed, L_PINT &pGreen, L_PINT &pBlue); |
Delphi Syntax |
Function LineProfile (FirstPoint: TPoint; SecondPoint: TPoint; var pRed: L_PINT; var pGreen: L_PINT; var pBlue: L_PINT): L_INT; |
Overview |
Refer to Examining and Altering Bitmaps. |
Remarks
Allocates three arrays and updates them with the R, G and B profile for each pixel in the specified line.
This method allocates memory buffers for the three arrays using the GlobalAllocPtr macro. When the buffers are no longer needed, they should be freed by calling the GlobalFreePtr macro.
This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Supportfor 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.
See Also
Elements: |
GetBitmapRow method, PutBitmapRow method, GetBitmapRowCol method, PutBitmapRowCol method, Pixel Property |
Topics: |
|
|