silverlight - Render WriteableBitmap in WPF -
I have seen a business status in Silverlight, when a picture is provided with a write-able bitmap render method , The resulting picture is very fast. Of course WPF is not available in the Render method. I used the drawing group to present two images on top of each other (I got a PNG with transparency and standard JPEG). However in that situation the resulting bitmap is not so fast (especially in the case of text).
Can you see any reason for this? Have you faced such a problem?
Any ideas for solutions?
Let me put a PNG with transparency on the JPG image and get an accurate result image.
Thanks in advance for the answer!
Cheers
Have you tried BitmapScalingMode on RenderOptions? This is an attached property that is applicable to most dependentobjects, which do anything with drawing pictures. One example:
& lt; Object name = "myObject" RenderOptions.BitmapScalingMode = "HighQuality" ... />
or to do this in codebehind:
renderopts .setmap scanning mode (myObject, bitmapScalingMode.HighQuality);
Comments
Post a Comment