How to change image resolution
Posted: 2008-09-04T11:11:46-07:00
I have some Magick++ API.
fname is pdf file. I write first page of it on Image image. I get image file with default density 72dpi. I want a resolution 300. How to set a resolution of each Image in imageVector to 300?
Please help me.
Code: Select all
vector<Blob> vector_blob;
Blob temp_blob;
vector<size_t> data_size;
size_t temp_data_size;
vector<char *>dib;
char * temp_dib;
int number_of_page;
Image image;
try {
vector<Image> imageVector;
cout << "Create imageVector\n";
readImages( &imageVector, fname);
cout << "read image to imageVector\n";
...
image.write( "x.bmp" );
Please help me.