Sign in to follow this  
water105

how to reduce a picture not changing the content of picture?

Recommended Posts

water105    122
Now I should reduce a picture to 5*5 with a 10*10 picture ,and keep the content nochanging. are there a well technolige to do it ? thank you very much!

Share this post


Link to post
Share on other sites
Oberon_Command    6082
There is no way to reduce a picture's size from 10*10 to 5*5 without losing SOME of the quality, but the picture should look somewhat the same after reducing it's size (just smaller, and harder to see because it will become pixelated). So, the answer is no, there isn't a way I know of.

Also, it seems obvious that English isn't your native language, but apart from a few small spelling errors (now = how, technolige = technology) and some grammatical errors (nochanging = unchanging, are there = is there, well technolige = technology), it's pretty good. Keep up the good work, you'll need it if you're going to hang around here. What is your native language?

Share this post


Link to post
Share on other sites
smart_idiot    1298
The easy method would be to just to skip every odd row/column.

That is, create a new bitmap with half the dimensions of the original, go through all the pixels, and copy the pixel at [x*2,y*2] to [x,y].

You could also average that pixel with the other 3 in the next row/column that you skipped to simulate antialiasing, which would look nicer but be more complicated.

Basically that is the same as before, but add up all the red, green, and blue colour components from pixels [x*2,y*2] to [x*2+1,y*2+1], divide them by 4, and use that for your new pixel at [x,y].

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this