By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & Developers. It's quick & easy.

making 600 dpi A3 size images

P: n/a
Hi,
I am trying to write a program, which will let me arrange 5 5x7 images
into an A3 sheet(12x18), 600 dpi.
I have a 3Ghz 512MB RAM machine.
Basically, I make a 7200 by 10800 pixel (12x18) bitmap and then arrange
every 5 by 7 picture in this bitmap. Needless to say, my machine slows
down like crazy, accompanied by a HUGE amount of swapping. after I
finish running the program, its best to reboot as my machine looks
"tired" from all that work.
My question is, how can i optimize making such big images? Is there a
way out?
Thanks!

Apr 19 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

Nikhil wrote:
Hi,
I am trying to write a program, which will let me arrange 5 5x7 images
into an A3 sheet(12x18), 600 dpi.
I have a 3Ghz 512MB RAM machine.
Basically, I make a 7200 by 10800 pixel (12x18) bitmap and then arrange
every 5 by 7 picture in this bitmap. Needless to say, my machine slows
down like crazy, accompanied by a HUGE amount of swapping. after I
finish running the program, its best to reboot as my machine looks
"tired" from all that work.
My question is, how can i optimize making such big images? Is there a
way out?
Thanks!


Why not add 5 picture controls to a form that was A3 in size, add in
the pictures and then output the whole form (i assume it is possible)
as a bitmap?

Apr 19 '06 #2

P: n/a
One other tip I found helpful in my work with imgaes. Dispose of the
image objects when you are done with them. I found that help fix the
"tired machine" problem Nikhil was writing about. The .NET Framework
does not seem to do a quick job of freeing up the memory used by
image objects, so you need to help by disposing of all unneeded
images in my experience.
John G.
4/19/2006 6:33:13 AM
Hugh Janus <my*************@hotmail.com> wrote in message
<11*********************@j33g2000cwa.googlegroups. com>
Nikhil wrote:
Hi,
I am trying to write a program, which will let me arrange 5 5x7 images into an A3 sheet(12x18), 600 dpi.
I have a 3Ghz 512MB RAM machine.
Basically, I make a 7200 by 10800 pixel (12x18) bitmap and then arrange every 5 by 7 picture in this bitmap. Needless to say, my machine slows down like crazy, accompanied by a HUGE amount of swapping. after I finish running the program, its best to reboot as my machine looks "tired" from all that work.
My question is, how can i optimize making such big images? Is there a way out?
Thanks!
Why not add 5 picture controls to a form that was A3 in size, add

in the pictures and then output the whole form (i assume it is possible) as a bitmap?

Apr 19 '06 #3

P: n/a
Nikhil wrote:
Hi,
I am trying to write a program, which will let me arrange 5 5x7 images
into an A3 sheet(12x18), 600 dpi.
I have a 3Ghz 512MB RAM machine.
Basically, I make a 7200 by 10800 pixel (12x18) bitmap and then arrange
every 5 by 7 picture in this bitmap. Needless to say, my machine slows
down like crazy, accompanied by a HUGE amount of swapping. after I
finish running the program, its best to reboot as my machine looks
"tired" from all that work.
My question is, how can i optimize making such big images? Is there a
way out?
Thanks!

Why don't you just set the printer to 600DPI and output each bitmap on
the apropriate place and scale on the canvas? There is no need to create
a bitmap that large in memory unless you want to save that to disk or
something. The bitmap you're creating now is somehere between 200 and
300MB (depending on the colourspace), no wonder it's slow.
--
Rinze van Huizen
C-Services Holland b.v
Apr 19 '06 #4

P: n/a
Yep, I need to save the image to disk - I dont have a 600 dpi color
printer - I give it someplace to print.
I do free up the images once they are placed on the A3 canvas - but the
garbage collector seems to pick up lost memory really slowly - should i
invoke it programmatically?
If I look at the memory utilization of the program, it shows that my
program gets 340MB in a jiffy, then suddenly loses everything to be 14
MB - and from there on, I get 1 MB at a time. Its a pain to wait. What
im trying to do here is that I am arranging photographs of children for
the year book. So I have an input file and I do batch processing.
Needless to say, after generating about 3 A3 size images, I have to
quit the application, restart, and start over again. There has to be a
better way to do this!

Apr 20 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.