c# - Creating high resolution image -


I have an image (PNG) with resolution 1600 * 1200 (96 dpi).

I have some text on the image and then it was saved in a file so that the pivot-observer could be loaded using silver deep zoom. The text gets blurred while moving and I was wondering how I can sharpen the text (only while zooming slightly).

This is my first programming with images / graphics, so any information would be great (i.e. the link to read, the concept of understanding etc.)

JD.

I have never used these controls, but you can override the zooming algorithm ( If this is also possible, I do not know). If you have text in an image and you are not using vector-based images (SVG, EMF, WMF, etc.), any kind of dispersion is going to be blurred.

A different zooming algorithm, if it is a possibility, can decide how to spread the pixels for the text, you have something called "the closest neighbor" or perhaps "bi-cube" projection Looking at, the size of the image is changing. These methods are more expensive in terms of processing, so you can not be as smooth as zoom with the default interpolation algorithm (whatever).

There are some forum posts that start similar discussions, but without the actual direction. Perhaps you can follow them and see how they progress. I am afraid that I can not help much.

> Nearest closest . There are some examples of resized images too. In

Update:

, the author monitors a change in the quality of the image tile, that uses Deep Zoom control (and that is the Silverlight !) The author effectively changes images created with some lines of code in his project:

  if (bismuthskilling) {g.SmoothingMode = System.Drawing. Drawing2D.SmoothingMode.HighQuality; G.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality; G.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; G.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; }  

In that list of assignments you can find interpolation modes mentioning, as well as some other things I did not know about. The author mentions significant impact on performance with everything set on "High quality".

Hopefully you can take this concept and can somehow include it in Silverlight. Good luck!


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -