scaletransform
Improving WPF Canvas performance
I am developing a Maps like application using WPF. I have ~10,000 PathGeometry, Shapes added to the canvas. I have added ScaleTransform and TranslateTransform for zooming and panning controls.[详细]
2023-04-07 12:52 分类:问答How to calculate the size of the scale transform applied control
How to calculate incr开发者_StackOverflow社区eased width and height of the scale transform applied control in WPF?public static Rect GetAbsolutePlacement(this FrameworkElement visual)[详细]
2023-04-03 23:24 分类:问答Portrait image resizing in java with imgscalr, but the final output is landscape. How to guarantee it stays the same orientation?
I am using imgscalr to create scale my images in a Grails application.Here is the code: BufferedImage sourceImg = ImageIO.read(new File(\"/tmp\" + File.separator + filename))[详细]
2023-03-23 09:19 分类:问答Port ScaleTransform.Changed event in from WPF to Silverlight
In WPF, the ScaleTransform has an event called Changed which raises whenever the scale X/Y is changed. But this event does not exist in Silverlight.[详细]
2023-03-09 21:18 分类:问答Gap between shapes after scaling in Silverlight
Create a 400 x 400 Canvas. Put a Blue rectangle that is 200 x 400 in it. Put another Blue rectangle, same size, with Canvas.Left = 200. Wrap this in a Viewbox and scale the view box. At certain resolu[详细]
2023-02-20 07:58 分类:问答How to scale an image using eye tracking in WPF?
I\'m trying to zoom in and out each frame from a live video stream from a webcam, by opening or squinting my eyes.I already have the eye tracking part working, but I can\'t figure out where to fit in[详细]
2023-02-14 09:45 分类:问答Find the applied ScaleTransform on a Control or UIElement?
I have a control sitting somewhere in my Window. At the root of this Window is a grid named MainGrid. I have a ScaleTransform applied on MainGrid\'s LayoutTransform that I use to zoom in on all the co[详细]
2023-02-13 12:10 分类:问答wpf scale to textBox, textBox can not display cursor when i click textBox
First, I Zoom(ScaleTransform) the TextBox, then mouse to click on the TextBox.Sometimes can display the cursor, and sometimes can notdisplay the cursor.Looking for a solution to solution to the proble[详细]
2023-02-01 07:15 分类:问答Silverlight scaletransform adjust scrollbars
I have the following UI element hierarchy: UserControl>ScrollViewer>Canvas.I am drawing lots of stuff on the canvas, and it becomes larger than the UserControl, at which point the ScrollViewer display[详细]
2023-01-09 10:44 分类:问答ScaleTransform transforms non-linearly
I am using scale transform to allow a user to resize a control.What happens though is that when you start to move the mouse the control jumps to a new size, and then scales oddly.The further you move[详细]
2023-01-02 21:43 分类:问答