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.
When drawing to a
Graphics
surface, 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: