←Select platform

SaveStampAsync(RasterImage,ILeadStream) Method

Summary

Saves a stamp in an existing file with specific options.

Syntax

C#
VB
WinRT C#
C++
public IAsyncAction SaveStampAsync(  
   Leadtools.RasterImage image, 
   ILeadStream stream 
) 
Public Overloads Function SaveStampAsync( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal stream As ILeadStream _ 
) As IAsyncAction 
public IAsyncAction SaveStampAsync(  
   Leadtools.RasterImage image, 
   ILeadStream stream 
) 
 function Leadtools.Codecs.RasterCodecs.SaveStampAsync(RasterImage,ILeadStream)(  
   image , 
   stream  
) 
public: 
IAsyncAction^ SaveStampAsync(  
   Leadtools.RasterImage^ image, 
   ILeadStream^ stream 
)  

Parameters

image
The RasterImage object that contain the thumbnail (stamp) image.

stream
A ILeadStream containing the data of an existing image file.

Return Value

An asynchronous save operation on a RasterCodecs object.

Remarks

The stamp will be written to last page in the file. If that page already has a stamp, it will be overwritten; If the file to which the stamp is being written does not exist, an exception will occur.

This method works for regular JPEG files and Exif JPEG files. For regular JPEG files, the stamp saved is always uncompressed and can be 8 or 24 bits per pixel. The stamp can be any width and height, but the stamp data and stamp header must completely fit in an APP0 marker. Therefore, the size must be less than 64k bytes (0xFFFF).

For Exif JPEG files, the stamps can be uncompressed or JPEG compressed and must be 24 bits per pixel. Exif JPEG stamps are supposed to be 160 x 120. However, LEADTOOLS can save and read Exif JPEG stamps of other dimensions. The stamp, along with other information such as the TIFF_HEADER, 0th IFD, 1st IFD, etc. must completely fit in an APP1 marker. Therefore, the size must be less than 64k bytes (0xFFFF).

NOTE: At this time, there are no multi-page formats that support stamps.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly