ImageGear for .NET
GetFromClipboard Method
See Also  Send Feedback
ImageGear21.Core Assembly > ImageGear.Core Namespace > ImGearRasterPage Class : GetFromClipboard Method




Glossary Item Box

Creates the ImGearRasterPage by getting the image from the system clipboard.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Return Value

ImGearRasterPage instance, if the system clipboard contains valid image. Otherwise returns null.

Remarks

Prior to calling this method, call CanGetFromClipboard to verify that there is a paste-able image in the clipboard. If the clipboard contains ImageGear's non-rectangular ROI (ImGearROIMask instance), it will be also retrieved and attached to the image as a ROI property.

Note: The supported pixel formats are 1-, 4-, 8-bit Indexed or 24-bit RGB format.

Note: The clipboard API can only be used in threads set to single thread apartment (STA) mode.

Note: The Windows clipboard does not support multiple access at the same time. It means, that attempt to use CopyToClipboard or GetFromClipboard simultaneously from multiple threads will lead to impossibility to copy/paste the image to/from the clipboard - the ImGearException will be thrown.

See Also

©2013. Accusoft Corporation. All Rights Reserved.