private static Bitmap GetRotatedCroppedResizedAndStrippedImage(BackgroundStrippingParams strippingParams, ImageClickInputDetails clickInput, ImageAlterationParams imageAlterationParams) { //pickup image from the source location var image = (Bitmap)Image.FromFile(String.Format(@"{0}\{1}", imageAlterationParams.ImageFolder, clickInput.ImageName)); //rotate image = MainProcessor.RotateImg(image, (float)clickInput.RotateImageBy, imageAlterationParams.InvalidColor); //crop image = ImageCropper.GetCroppedImage(clickInput, image, imageAlterationParams); //resize image = ImageResizer.ResizeImage(image, imageAlterationParams); //strip background BackgroundStripper.StripBackground(image, strippingParams); return(image); }
public static void ApplyImage(CreateMeshContract inputParams, int index, ref Stream moldDataPtr, Logger logger) { MainProcessor.ApplyImage(inputParams, index, ref moldDataPtr, logger); }