CodeCarvings Piczard V1.2 Help
Manual Image Resize
See Also Send Feedback
Piczard Fundamentals - Core > Built-in Filters > Resize An Image > Manual Image Resize

Glossary Item Box

Please see the Example A.201 - "Resize an image / Manual".

In order to "manually" resize an image you have to use the ImageTransformation class.

Programmatically Resize An Image (ResizeFactor: 50%) Copy Code
new ImageTransformation(50).SaveProcessedImageToFileSystem("Source.jpg", "Output.jpg");

 

 

 

The ImageTransformation class as well as allowing resizing, it also allows to rotate & flip images.
For more information please see: Rotate & Flip An Image

Multiple Image Transformations With A Singe Filter Copy Code
ImageTransformation transformation = new ImageTransformation();
transformation.ResizeFactor = 200F;   
// 200% Resize
transformation.RotationAngle = 90F;   // Rotate 90°
transformation.FlipH = true;          // Horizontal flip
transformation.SaveProcessedImageToFileSystem("Source.jpg", "Output.jpg");

 

See Also

©2013 Sergio Turolla. All Rights Reserved.