Sign in to follow this  

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

This topic is 4548 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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
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

This topic is 4548 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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