Class TransformImageForm
A dialog for resizing and re-encoding an image, letting the user change dimensions (optionally keeping aspect ratio), pick the output format (PNG, JPEG or GIF) and JPEG quality, and returns the transformed image stream.
Inheritance
TransformImageForm
Implements
Inherited Members
Namespace: Reportman.Drawing.Forms
Assembly: Reportman.Drawing.Forms.dll
Syntax
public class TransformImageForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
View SourceTransformImageForm()
Declaration
public TransformImageForm()
Methods
View SourceDispose(bool)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | true if managed resources should be disposed; otherwise, false. |
Overrides
View SourceInicializar(MemoryStream, int?)
Declaration
public void Inicializar(MemoryStream nOriginalStream, int? defaultSize)
Parameters
| Type | Name | Description |
|---|---|---|
| MemoryStream | nOriginalStream | |
| int? | defaultSize |
ShowTransformImage(MemoryStream, IWin32Window, int?)
Declaration
public static MemoryStream ShowTransformImage(MemoryStream imageStream, IWin32Window owner, int? defaultSize)
Parameters
| Type | Name | Description |
|---|---|---|
| MemoryStream | imageStream | |
| IWin32Window | owner | |
| int? | defaultSize |
Returns
| Type | Description |
|---|---|
| MemoryStream |