LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Buffer Property
See Also 
Leadtools.Codecs Namespace > CodecsSaveImageEventArgs Class : Buffer Property



Gets the memory buffer containing one or more lines of output image data that the you must provide.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Buffer As RasterNativeBuffer
Visual Basic (Usage)Copy Code
Dim instance As CodecsSaveImageEventArgs
Dim value As RasterNativeBuffer
 
value = instance.Buffer
C# 
public RasterNativeBuffer Buffer {get;}
C++/CLI 
public:
property RasterNativeBuffer Buffer {
   RasterNativeBuffer get();
}

Property Value

A Leadtools.RasterNativeBuffer object containing one or more lines of output image data that the you must provide.

Example

For an example, refer to RasterCodecs.SaveImage.

Remarks

The Buffer property works as the input and output buffer containing the image data to save. If the value of CodecsSaveOptions.RetrieveDataFromImage is set to false (the default), then the user is always responsible for providing the image data by setting in Buffer. If the value of CodecsSaveOptions.RetrieveDataFromImage is set to true, then the RasterCodecs object will populate the Buffer prior to raising this event. The user can then inspect or modify the scanlines data or simple ignore it to save the original image data as is.

Notice that on either case, the user must provide the scanline data in the source image original format (stored in the Image property. The RasterCodecs object will then convert this data to the appropriate output format if needed, for example, if the user instructed the RasterCodecs object to save the image in a different file format than the original image.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also