I'm working with MetaFile. Is there any way to crop a metafile to zoom a specific part?
I'm thinking of redrawing it on a larger bitmap then crop that image, but I know this is not ideal.
I'm working with MetaFile. Is there any way to crop a metafile to zoom a specific part?
I'm thinking of redrawing it on a larger bitmap then crop that image, but I know this is not ideal.
Copyright © 2021 Jogjafile Inc.
When drawing to a
Graphicssurface, i.e. when drawing to aBitmap, you can easily crop using one of the overloads of theDrawImage()method. Here is an example where only the lower right quarter of the metafile is drawn to the bitmap: