WPF element success sort of #3006
Replies: 3 comments 3 replies
-
Okay so I am fairly confident that my prepared bitmap image is landing in the element canvas properly, but for the pixelation issue. Going to tinker with the ignore properties see what effects that has positive or negative. The other side of that is, how do I automatically zoom in the area. Or is that a difference between As a function of, I think |
Beta Was this translation helpful? Give feedback.
-
Looking for some helpful samples, if possible, not just academic "here's an image load load or draw the image". That's the easy part, trivial almost.
The tricky part with any of this is doing the appropriate world to whatever, canvas, screen, etc, coordinate transformations; the operative word transformations, not just translations. Because the source image in this case is rotated 180 degrees, where alignment to canvas zero may be expected. So that's the among the first/last things we must do, to invert or rotate coordinates to world, etc. Leaving aside scaling, not just offsets. |
Beta Was this translation helpful? Give feedback.
-
At the moment thinking I need to at least two separate scaling factors. The mouse wheel scaling, tracking with mouse wheel zoom EH. And a screen canvas scaling, keeping track of the source image, and as we detect screen resolution, size changes, and the like. I think that will probably make things a bit easier to digest. That and separate some control initialization from paint behaviors. |
Beta Was this translation helpful? Give feedback.
-
First, was successful loading an image into my element. Got some cartographer effort to do there tracking bitmap versions better, and to present the correct version. But otherwise decent start.
As some of the docs suggested, there is bit of pixelation going on, I definitely need for the image to preserve the image detail if at all possible. Or perhaps I could present the canvas in the element as more of a view port over the image, I'm not sure quite how that would go, perhaps that is managing height, width, actual heights widths, etc.
Cheers thanks for the suggestions.
Beta Was this translation helpful? Give feedback.
All reactions