problem about rendertargetbitmap-Collection of common programming errors
Patrick Klug
c# wpf rendertargetbitmap
I don’t understand why the DPI parameters on the RenderTargetBitmap are used the way they seem to be used. Quite often I see code that deals with non-standard DPI settings by adjusting the image size based on the DPI like this:new RenderTargetBitmap ((int) (width/96d)*dpi, (int) (height/96d)*dpi, dpi, dpi, PixelFormats.Pbgra32);Examples:http://blogs.msdn.com/b/jaimer/archive/2009/07/03/rendertargetbitmap-tips.aspxContentControl + RenderTargetBitmap + empty imagehttp://social.msdn.microsoft.com/f
Web site is in building