Error processing SSI file
LEADTOOLS (Leadtools assembly)

Show in webframe

SetYUVData(IntPtr,Int64,RasterYUVFormat) Method








Buffer that contains the YUV data.
Size of the data buffer pointed to by buffer. If this value is incorrect, this method will throw an exception.
Specifies the YUV data format.
Updates the image data using the YUV data from an input buffer. The YUV data is converted to grayscale/BGR before being set in the RasterImage.
Syntax
public void SetYUVData( 
   IntPtr buffer,
   long bufferCount,
   RasterYUVFormat yuvFormat
)
'Declaration
 
Public Overloads Sub SetYUVData( _
   ByVal buffer As IntPtr, _
   ByVal bufferCount As Long, _
   ByVal yuvFormat As RasterYUVFormat _
) 
'Usage
 
Dim instance As RasterImage
Dim buffer As IntPtr
Dim bufferCount As Long
Dim yuvFormat As RasterYUVFormat
 
instance.SetYUVData(buffer, bufferCount, yuvFormat)
public void SetYUVData( 
   IntPtr buffer,
   long bufferCount,
   RasterYUVFormat yuvFormat
)
 function Leadtools.RasterImage.SetYUVData(IntPtr,Int64,RasterYUVFormat)( 
   buffer ,
   bufferCount ,
   yuvFormat 
)
public:
void SetYUVData( 
   IntPtr buffer,
   int64 bufferCount,
   RasterYUVFormat yuvFormat
) 

Parameters

buffer
Buffer that contains the YUV data.
bufferCount
Size of the data buffer pointed to by buffer. If this value is incorrect, this method will throw an exception.
yuvFormat
Specifies the YUV data format.
Remarks

This function is designed to be used mainly for use in mobile imaging to facilitate filling a BITMAPHANDLE structure using live frames from the mobile device's camera.

The function ignores the image's view perspective, so it must match the orientation of the YUV buffer. In most cases, the YUV buffer is top-to-bottom, so the ViewPerspective should be TopLeft. If the YUV buffer is flipped, the ViewPerspective should be BottomLeft, so it will be automatically flipped before saving or painting.

The YUV data should contain studio video YUV, with Y values ranging from 16 to 235 and U,V values ranging from 16 to 240. Values outside this range are clipped: values below 16 will be considered as if they were 16. Y values above 235 will be clipped to 235, U/V values above 240 will be clipped to 240.

The only supported bits per pixel are 8, 24 and 32.

Example
For an example, see SetYUVData(byte[], int, int, RasterYUVFormat).
Requirements

Target Platforms

See Also

Reference

RasterImage Class
RasterImage Members
Overload List

Error processing SSI file