Zoom and Pan Buttons
patg1
1/29/2019 2:37 AM
|
---|
Hi Wout,
Would adding buttons be possible to implement in the WebApplicationExampleCS?
Code: <p>
<asp:Button ID="btnRegenerateImage" runat="server" Text="Regenerate Image" style="margin-top:10pt; |
Wout
1/29/2019 9:21 AM
|
---|
Hi Pat,
Yes that's possible. You could use the SimpleTransformationProvider2D class to do the zooming/panning and use StoreStateTo/RestoreStateFrom to store the
Visual Basic Code: SimpleTransformationProvider2D
|
patg1
1/29/2019 6:14 PM
|
---|
Ok thanks, I couldn't find a SimpleTransformationProvider2D example, but I did come up with a super simple fix in WebApplicationExampleCS. I modify the "Size" argument the window model-to-bitmap conversion "CreateAutoSizedBitmap()". A little crude, but at least the user can view the bitmap in better detail and higher resolution.
C# Code: / |