On 12/12/05 8:47 pm, "Michael Nadel" <[EMAIL PROTECTED]> wrote: > I have 365 words (as bitmaps) in English as seperate cast members, and 365 > translations in French (as bitmaps). I want to know if there's a way using > imaging lingo (which I am not good at) to somehow make 365 cast members that > have the English word on top and the French translation on the bottom, > centered underneath it (with a little bit of space) by combining the two > pictures. To do it by hand would be very tedious... Any ideas?
Hi Michael, Your handler needs to: 1. Create in image object as wide as the wider of the two bitmaps 2. As high as the sum of the heights of the bitmaps, plus your margin 3. Calculate how far to offset the top bitmap horizontally (image.width - bitmap.width) / 2 4. Use this to calculate the target rect for the upper word 5. Use a similar calculation for the bottom bitmap, and also offset the target rect for the lower bitmap vertically 6. Perform two copyPixels calls. 7. Move on to the next pair of bitmaps. Have fun, James [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
