cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : crop image
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

question  crop image

divya balachandran (3)
how to crop a image using C++ coding?
|
exception (292)
By reducing their size at the given border(s) using C++ statements only.
Seriously, the term "image" is a bit general. If you have, say, jpeg images, you want to crop them at the box boundary (each box is 8x8 pixels), otherwise it isn't lossless (you wouly have to recrompress, applying the DCT (discrete cosine transform) on different boundarys, ruining the image if the quality isn't very high). Which brings us to the next problem: what exactly do you want to do yourself? Can you use libraries to load (...crop...) and save the images? Otherwise, jpeg is a little bit hard to implement... (except you are familiar with the compression techniques, that is).
| Last edited on
Duoas (1458)
You might want to google for the ImageMagick library.
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us