c# - Winforms version WPF ScaleTransform? -


i'm attempting create of software zoom image in winforms application. noticed answer similar issue stating achieved mousewheel using

private void image_mousewheel(object sender, mousewheeleventargs e) {     var st = (scaletransform)image.rendertransform;     double zoom = e.delta > 0 ? .2 : -.2;     st.scalex += zoom;     st.scaley += zoom; } 

that solution need, appears part of system.windows.media, doesn't seem part of winforms architecture.

does know of similar option winforms end resembling functionality? google searches haven't turned :(

thanks!

you might want graphics.scaletransform. idea of arbitrary transformations part of rendering process isn't all-pervasive in windows forms, transform 1 image image via graphics, believe.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -