Anyone know how to get a PNG file displayed without being antialiased or "fiddled with"?
Below are two images, the first is a ThinkGeo image and the second the same PNG from Paint. The ThinkGeo image looks fuzzy as if it had been antialiased.
Screen shot was with CompositingQuality Default,DrawingQuality HighSpeed, SmoothingMode HighSpeed and TextRenderingHint SingleBitPerPixelGridFit.
I know the two images look fairly similar but when displayed at 2560*1600 the ThinkGeo image becomes quite tiring on the eyes.
I think that's because the png is stretched. I tried the same png file and make it drawing on map without any stretching, it looks the same as displayed in Windows Paint.
Here is the demo how to show the png without any stretching. You can see as the png is 277*197, I made the control size to 277 * 197 and made the extent's with and height with the ratio 277:197.
Thanks for that, that gives me a clue, that its me thats wrong. The problem I am stuggling with is that the actual PNG size is 3199 x 4877 so setting the extent is not an option, I need to calculate and set the scale so that we get true resolution, any thoughts?
Here is a small demo how to deal with that. 2 notes here: 1st, the boundingbox of the png layer should have the same ratio of the image's width and height, so for your case it should be 3199:4877; 2nd, I plus 1 on the width and height to balance the internal calculation difference (the map will modify the input bounding box according to the control's width and height as its new bounding box, maybe there has some calculation difference, we will have a look at that) I think. You may also need some for your image.
I work Thinkgeo Desktop Edition evalution version in C#. And I use png image on the map.For this work I use DrawCore.When I pan map,I lost same image.This events hapen,when centerpoint of image not location on map.For example in 1.png have image. When I pan map this image is lost (2.png).
I have tried to recreate this issue, but I can not make it.
The attachement is the sample application I create from your code, the original code can not be compiled, so I updated some of them, but I can not run because of lacking some of the necessary code.
Please update the sample application and attached your data if they're needed to make it can recreate your problem.