i can't zoom a picture to the specified width and height

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
lezi1022
Posts: 2
Joined: 2012-11-20T00:26:56-07:00
Authentication code: 6789
Contact:

i can't zoom a picture to the specified width and height

Post by lezi1022 »

try
{
Blob blob(static_cast<const void*>(buf), stStat.st_size);
Geometry geo(22,22);

Image image( blob );
image.zoom(geo);
image.write("2.jpg");

}
catch( Exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
return -1;
}

but i get a 22X17 picutre,how can i get a 22x22 picture?
lezi1022
Posts: 2
Joined: 2012-11-20T00:26:56-07:00
Authentication code: 6789
Contact:

Re: i can't zoom a picture to the specified width and height

Post by lezi1022 »

i got it, use 22x22! or geo.aspect(ture);
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests