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

Upgrade from ImgX to DotImage

Last post 06 Mar 2008, 4:29 PM by Glenn. 1 replies.
Sort Posts: Previous Next
  •  06 Mar 2008, 1:42 AM 13419

    Upgrade from ImgX to DotImage

    Hi,

    We're using ImgX and are looking to upgrade to DotImage. We use the following commands in code:

    oImgX.Effects.Autocrop Tolerance, 16777215

    oImgX.Effects.Resize Width, Height, ImgX_ResizeMethods.ixrmLanczos3Filter

    oImgX.Effects.ResizeCanvas Width, Height, RGB(255, 255, 255), SmallerWidth, SmallerHeight

    oImgX.JPGQuality = NewValue

    oImgX.JPGProgressive = NewValue

    Can DotImage do all this? What would the equivalent commands be in DotImage?

  •  06 Mar 2008, 4:29 PM 13423 in reply to 13419

    Re: Upgrade from ImgX to DotImage

    Yes this can all be done in DotImage.

    Atalasoft.Imaging.ImageProcessing.AutoCropCommand autoCrop = new AutoCropCommand(tolerance, Color.White);

    Atalasoft.Imaging.ImageProcessing.ResampleCommand resample = new ResampleCommand(new Size(Width, Height), ResampleMethod.LanczosFilter);

    Atalasoft.Imaging.ImageProcessing.Transforms.ResizeCanvasCommand resizeCanvas = new ResizeCanvasCommand(new Size(Width, Height), new Point(offsetX, offsetY), Color.White);

    Atalasoft.Imaging.Codec.JpegEncoder jpg = new JpegEncoder(quality, 0, progressive);
    jpg.Save(stream, image, null);
     


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