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
Post a Comment