ImageGear .NET
Rasterizing a Vector Drawing

To rasterize a vector drawing, use the Rasterize Method of ImGearVectorPage Class.  This creates a copy of the drawing in bitmap form. For example:

C#
Copy Code
if (igPage is ImGearVectorPage)
    igPage = ((ImGearVectorPage)igPage).Rasterize();

To control the size of the rasterized bitmap, you can do one of following:

SVG cannot be resized before it's rasterized; SVG doesn't have control parameters, and cannot be resized using the Resize Method. To resize an SVG, you need to rasterize it first, then resize it.

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback