Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

ImageProcessing AutoCrop command

Last post 31 Jan 2008, 6:37 PM by Glenn. 1 replies.
Sort Posts: Previous Next
  •  31 Jan 2008, 10:41 AM 13068

    ImageProcessing AutoCrop command

    I'm currently using DotImage 4.0 and haven't had any luck getting the normal AutoCrop command to work:

    AutoCropCommand cropCmd = new AutoCropCommand();
    img = cropCmd.Apply(img).Image;

    My image is just a black and white document, but running the command doesn't do anything. I've tried returning the frame size using the AutoCropCommand and it's the same as the original image. Is there something I'm missing?

    Cheers

    Andy

    Filed under: , ,
  •  31 Jan 2008, 6:37 PM 13077 in reply to 13068

    Re: ImageProcessing AutoCrop command

    The AutoCropCommand will stop as soon as it hits 1 pixel that isn't a border color.  That is most likely what's happening. 

    Our Advanced Document Cleanup add-on does a far better job as it will analyze the image rather than looking for a single pixel change.


    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML