Re: Stitching lots of images together?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ian Cowley (me3_at_privacy.net)
Date: 02/11/04


Date: Wed, 11 Feb 2004 15:22:36 -0000

Bonj <anonymous@discussions.microsoft.com> burbled:
> Save the images as individual bitmap files, then write a program that
> joins bitmap files together. A 24-bit bitmap (which is what VB's
> pictureboxes will output) consist of a BITMAPFILEHEADER, then a
> BITMAPINFOHEADER, then a load of bytes describing the actual pixels.
> You've got to remember three things: a) the bytes describe the pixels
> going from left to right, bottom to top.
> b) each row has to contain a multiple of 4 bytes, if it doesn't it has to
> be padded with zeros.
> c) for a 24-bit bitmap each pixel is 4 bytes.

Cheers, I might do that. The original files are GIF files.

So how's this as a plan:
a) Open a gif.
b) Save it as a bitmap.
c) Open the bitmap to get the header
d) Open the 1600 gif files I need and then write out the data using
GetDIBits from the picture box (or similar).

Will that work? I'd imagine speed will be an issue there :(

-- 
Ian Cowley (Not Reverend)  - Perfecting pedantry through practice
  Check www.iancowley.co.uk for contact details!
"Dad, do you even know what 'rhetorical' means?"
 "Do I know what rhetorical means?!"


Relevant Pages

  • Re: VB 2003: image/bitmap von bunt in Graustufen umwandeln
    ... Ich habe auf einem Formular 2 PictureBoxes gelegt, in das erste eine Bitmap eingefügt und in der 2ten ließ ich mir die Graukonvertierung anzeigen. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Filestream Error...
    ... And no PictureBoxes don't need a file. ... the superclass of Bitmap). ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Copy several bitmaps at the same time?
    ... In my VB .Net program, there are four pictureboxes and each of them has a ... that can be pasted into other applications shch as a Word document. ... Now I can copy only one bitmap at a time. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problem with SavePicture, and a question on new versions
    ... > mode does not have to be in pixels. ... 500 pixels then the picture box will also be 700 x 500 pixels. ... and the bitmap shows ... to be *smaller* than the scale units that the BitBlt API is using ...
    (comp.lang.basic.visual.misc)
  • Re: How long Win32 viable?
    ... >> monitor pixels. ... the pixel based world we have with the Win32 API approach to graphics. ... would translate your comment as meaning that your apps are designed for one ... expecially when the bitmap has a lot more pixels than the form it is ...
    (borland.public.delphi.non-technical)