添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
←Select platform
In This Topic ▼

SetImage Method

Remarks

GetImage and GetImage(resolution) are used to get a raster image representation of this page. All document types support this method and it will always return a value object.

SetImage is used to replace the raster image of the page. IsImageModified is used as a flag that indicates that the image of this page has been replaced by the user.

This method works as follows (the "item" is a raster image with the specified resolution):

This method requires that the owner document uses a cache system ( LEADDocument.HasCache is true ); otherwise, an exception will be thrown.

If the value of the IsReadOnly property of LEADDocument is true , then the user cannot modify this document and an exception will be thrown.

All previously saved raster image objects for this page are purged from the cache.

4.An image is added to the cache by serializing the RasterImage object. The original object is not disposed and is still owned by the user. If image is null , then a "null" item is added to the cache.

  • The page Size and Resolution properties are updated to be the same value as the image. If the image set is null , then these values are set to DocumentPages.DefaultPageSize and DocumentPages.DefaultResolution .
  • GetImage will check the cache first, hence, subsequent calls will return the value set by this method.

    The value of IsImageModified will be set to true after this method returns.

    For more information, refer to Loading Using LEADTOOLS Document Library .

    Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.

    Chat Hours:

    Monday - Friday, 8:30am to 6pm ET

    Thank you for your feedback!

    Please fill out the form again to start a new chat.

    All agents are currently offline.

    Chat Hours:

    Monday - Friday

    8:30AM - 6PM EST

    To contact us please fill out this form and we will contact you via email.

    First name is required. Last name is required. Valid email is required(e.g [email protected]). Question cannot be empty. Support Sales Licensing