GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / DeleteClipboardData Method
Example





In This Topic
DeleteClipboardData Method (GdPictureImaging)
In This Topic
Clears the clipboard data after they have been used.
Syntax
'Declaration
 
Public Sub DeleteClipboardData() 
public void DeleteClipboardData()
public procedure DeleteClipboardData(); 
public function DeleteClipboardData();
public: void DeleteClipboardData(); 
public:
void DeleteClipboardData(); 
Remarks
Just to inform you, that this method uses the Clipboard class of the .NET Framework.
Example
Creating a new image from a specified area of an existing image using clipboard.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    int imageID1 = gdpictureImaging.CreateGdPictureImageFromFile("");
    // Copy the specified region of an image to clipboard.
    gdpictureImaging.CopyRegionToClipboard(imageID1, 50, 50, 100, 250);
    // Create a new image from clipboard data.
    int imageID2 = gdpictureImaging.CreateGdPictureImageFromClipboard();
    // Process newly created image.
    gdpictureImaging.FxSepia(imageID2);
    gdpictureImaging.SaveAsPNG(imageID2, "image.png");
    // Release used resources.
    gdpictureImaging.DeleteClipboardData();
    gdpictureImaging.ReleaseGdPictureImage(imageID1);
    gdpictureImaging.ReleaseGdPictureImage(imageID2);
}
See Also