tags:

views:

84

answers:

2

Hi, I need to resize an image, but the image quality cannot be affected by this, the images will be from like 10x10 to 1000x1000, it will have some major congestions and some empty times it has to scale both up and down "potentially losing some image quality." is OK but it has to be at minimum, everything with raster graphics indeed NO libraries or other external binaries please

+2  A: 

Here is a link showing you how to resize an image:

http://snippets.dzone.com/posts/show/4336

Kevin
A: 

What you need is for your images to be scalable. I'd recommend using an XML format to store your images, since XML is very scalable. For example:

<Image Width="640" Height="480">
  <Pixel X="0" Y="0">
    <Red>20</Red>
    <Green>80</Green>
    <Blue>0</Blue>
    <Alpha>255</Alpha>
  </Pixel>
  <Pixel X="1" Y="0">
    ...

If you're worried about memory, I bet this will compress really well :-).

Robert Fraser
Is...is this sarcasm? If so, brilliant! If not, maybe you need a thesaurus... :-)
NickAldwin
excuse me sir..WHAT?
Robert Fraser
@NickAldwin - I don't joke around when it comes to XML.
Robert Fraser