Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > ImageViewerRenderRedirectOptions Class : CreateTransform Method |
public void CreateTransform( ImageViewer imageViewer, LeadRect destinationRect, LeadRectD sourceRect, ControlSizeMode sizeMode, ControlAlignment horizontalAlignment, ControlAlignment verticalAlignment )
'Declaration
Public Sub CreateTransform( _ ByVal imageViewer As ImageViewer, _ ByVal destinationRect As LeadRect, _ ByVal sourceRect As LeadRectD, _ ByVal sizeMode As ControlSizeMode, _ ByVal horizontalAlignment As ControlAlignment, _ ByVal verticalAlignment As ControlAlignment _ )
This method will set the transformation matrix into Transform.
Use this method CreateTransform can be used to easily create a transformation matrix for common scenarios such as rendering a thumbnail of the content of the viewer.
For more information, refer to Image Viewer Rendering.
For an example, refer to RenderRedirect.