Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » GDI Contact sheet

This thread is locked; no one can reply to it. rss feed Print
GDI Contact sheet
Ariesnl
Member #2,902
November 2002
avatar

Not an allegro problem, but I think my best chances are here ;-)

I'm trying to make a function (in a DLL) that grabs pictures from a directory
and makes one big image of it.. so it is a simple stitcher or contact sheet maker.
I cannot use any big library to do it, and it has to be reasonably fast.

I got this working by creating a big image ( rows and columns of the images are known) and blitting or stretchblitting ( when reducing the resolution) the images in the bigger picture. But for some reason it now produces an invalid bitmap that cannot be read. and GDI is not giving any errormessages.
( it is only a different set of images)

Does anyone know about a good tutorial how to do this, or a better way ?

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Ariesnl
Member #2,902
November 2002
avatar

I know.. I'd love to use allegro for this.. but I cannot...
It's a Dll that is called from a C# program (not my choice ;) )

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Peter Hull
Member #1,136
March 2001

Do you mean GDI or GDI+ or the managed interface to GDI+ (the stuff in System.Drawing)?

I don't think this can be relevant, but I remember having difficulty with bitmaps in GDI+ because the library was holding the bitmap files open after I'd loaded from them.

Code please!

Go to: