comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Creating an image as a sum of images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Creating an image as a sum of images [message #42440 is a reply to message #42301] Thu, 03 February 2005 14:45 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <fhu40117oo2oat2gg4oi0tvm1bml66r2m1@4ax.com>,
FSD <frank@digennaro-dot-com> wrote:

> I am new to IDL and am having a problem figuring out how to
> accomplish an easy task. I have 8 images (png) that are 128x128.
> I would like to create one large image that is composed of four images
> in two rows with some sort of whitespace in between. Thats it. Any
> help at all would be greatly appreciated.

Something like this, I think, ...

file = ['png1', 'png2', ...]

image = BYTARR(3, 4*128, 2*128)
FOR j = 1, 0, -1 DO BEGIN
FOR i = 0, 3 DO BEGIN
ifile = i + j*4
png = READ_PNG(file[ifile])
image[*, i*128, j*128] = png
ENDFOR
ENDFOR

Add whitespace as needed ...

Cheers, Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Creating an image as a sum of images
Next Topic: Object Graphics plot problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Dec 04 12:25:03 PST 2025

Total time taken to generate the page: 2.09101 seconds