How do I crop an image and set its brightness and contrast

Showing 1-2 of 2 messages
How do I crop an image and set its brightness and contrast CJ 10/12/10 9:12 AM
I recently inherited a VB.Net project that uses MetaDraw 2 for .Net
and I have a couple of questions.  Can someone give me a snippet of
code that will crop an image.  I also need an example of how to adjust
the brightness and contrast of an image.  Since I can't find any
documentation on Benett-Tec's website, I thought I would try this
forum for help.

Thanks in advance!
Re: How do I crop an image and set its brightness and contrast Bennet-Tec Staff 3/15/13 11:40 AM

While there is no one step method to do this, definitely you can
use MetaDraw  for cropping images.  

Cropping the image in MetaDraw is be done by setting 4 properties
( ClipLeft, ClipTop, ClipWidth, ClipHeight ) to specify  the location
of the top left corner, and the height and width of the crop area.  
 
Potentially you might allow a user to draw a rectangle
around the desired area and use this to determine the crop boundaries.
 
You would then set another property ( ExportOptions) to specify that when
reading the  image it should be cropped to those specifications.
At this point you can set the Picture property to itself.
This would replace the original image with the cropped image.   
Or you could save the cropped image to a file or database using
the SavePicture method.