public void rotate(int degrees) { RenderedOp newImage = ImageUtilities.getRotatedImage( image, degrees); replaceImage(newImage); }
public void rotate(int degrees) { RenderedOp newImage = ImageUtilities.getRotatedImage( image, degrees); image.Dispose(); System.GC.Collect(); image = newImage; }
public void scaleToOneDimension(float desiredDimension, float imageDimension) { if (Math.Abs(desiredDimension - imageDimension) < errorThreshold) { return; } float scalingFactor = desiredDimension / imageDimension; scalingFactor = (float)(Math.Floor(scalingFactor * 100) * 0.01f); RenderedOp newImage = ImageUtilities.getScaledImage( image, scalingFactor, scalingFactor); replaceImage(newImage); }
public void scaleToOneDimension(float desiredDimension, float imageDimension) { if (Math.Abs(desiredDimension - imageDimension) < errorThreshold) { return; } float scalingFactor = desiredDimension / imageDimension; scalingFactor = (float)(Math.Floor(scalingFactor * 100) * 0.01f); RenderedOp newImage = ImageUtilities.getScaledImage( image, scalingFactor, scalingFactor); image.Dispose(); System.GC.Collect(); image = newImage; }
internal static RenderedOp getRotatedImage(RenderedOp image, int degrees) { throw new NotImplementedException(); }
private void replaceImage(RenderedOp newImage) { image.Dispose(); System.GC.Collect(); image = newImage; }