Re: Label an Image with Text?
Chipp, on December 11, 2004 10:59:21 AM CST Chipp Walters <[EMAIL PROTECTED]> wrote: I have a set of handlers which can composite multiple images with overlapping alpha channels as well. You might want to take a look at them at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm called: Image Compositing... best, Chipp Yes, Chipp I have your stack and got some of my ideas from it and from Dar's postings some time ago. Many thanks to both of you and others for the ideas. I was just concerned that the original poster (Rick) might dismiss doing this sort of thing because of speed. My images are a special case of icons and are all the same size so the simple script serves the purpose. Thanks again for your great web site, Glenn Glenn E. Fisher University of Houston - Retired 22402 Diane Dr. Spring, Tx 77373 [EMAIL PROTECTED] http://www.uh.edu/~fisher http://home.houston.rr.com/thegefishers/ http://homepage.mac.com/gefisher ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Label an Image with Text?
Glenn, I have a set of handlers which can composite multiple images with overlapping alpha channels as well. You might want to take a look at them at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm called: Image Compositing... best, Chipp Glenn E. Fisher wrote: I have modified images that I use for button icons by merging two .png files whose alpha masks don't overlap with the following transcript that is fast enough for icon sized images: ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Label an Image with Text?
Hi Rick, You wrote: Hi there, I was wondering if there is a way in Rev to paint a text label onto a jpeg image file and then save it as part of the jpeg file when I export it. (I also noticed the lack of a text tool for doing that in the paint tools.) Anyone? Is the text dynamic? or can you build it as an image outside of RR? I have modified images that I use for button icons by merging two .png files whose alpha masks don't overlap with the following transcript that is fast enough for icon sized images: on mergeImages im1,im2,imout put the imageData of image im1 into d1 put the imageData of image im2 into d2 put the alphaData of image im1 into a1 put the alphaData of image im2 into a2 put the height of image im2 into h put the width of image im2 into w put the length of d2 into n put 0 into i repeat for each char c in a1 add 1 to i if i>n then exit repeat put charToNum(c) into x if x=0 then put char 4*i-3 to 4*i of d2 after d3 put char i of a2 after a3 else put char 4*i-3 to 4*i of d1 after d3 put char i of a1 after a3 end if end repeat if there is not an image imout then create image imout end if set the text of image imout to empty set the height of image imout to h set the width of image imout to w set the imageData of image imout to d3 set the alphaData of image imout to a3 end mergeImages HTH, Glenn Glenn E. Fisher University of Houston - Retired 22402 Diane Dr. Spring, Tx 77373 [EMAIL PROTECTED] http://www.uh.edu/~fisher http://home.houston.rr.com/thegefishers/ http://homepage.mac.com/gefisher ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Label an Image with Text?
> I tried taking a snapshot after getting the rectangle > of the image, but it ended up getting other parts of > the stack window too. Is this a problem of relative > vs. absolute coordinates? Yes, you have to specify the exact coordinates for the snapshot to work. > Thanks for the quick response! No problem, glad to see someone else can't sleep either (unless your on the other side of the world). Derek Bump Dreamscape Software Compress Images Easily with JPEGCompress http://www.dreamscapesoftware.com - Original Message - From: "Rick Harrison" <[EMAIL PROTECTED]> To: "How to use Revolution" <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 11:19 PM Subject: Re: Label an Image with Text? > > On Dec 10, 2004, at 12:00 AM, Derek Bump wrote: >> >> You mean like taking group of text and rendering it into an image? >> Well, there is no native way to do this, but what you can do is >> this... >> >> 1. Put the text you want into a fld. >> 2. Take a snapshot of the fld. >> 3. figure out where in the imageData of the "main" image that you want >> to insert the imageData from the snapshot. >> >> That method will take a VERY long time as you have to parse the main >> image pixel by pixel. The other method is this, but if the image is >> larger than the stack then it will get cut off. >> >> 1. Put the text you want into a fld. >> 2. Place the fld where you want it to appear over the image. >> 3. Take a snapshot of the image. >> >> > > Derek, > > The latter method is probably the easiest. > > > Rick Harrison > > > > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution > >___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Label an Image with Text?
On Dec 10, 2004, at 12:00 AM, Derek Bump wrote: You mean like taking group of text and rendering it into an image? Well, there is no native way to do this, but what you can do is this... 1. Put the text you want into a fld. 2. Take a snapshot of the fld. 3. figure out where in the imageData of the "main" image that you want to insert the imageData from the snapshot. That method will take a VERY long time as you have to parse the main image pixel by pixel. The other method is this, but if the image is larger than the stack then it will get cut off. 1. Put the text you want into a fld. 2. Place the fld where you want it to appear over the image. 3. Take a snapshot of the image. Derek, The latter method is probably the easiest. I tried taking a snapshot after getting the rectangle of the image, but it ended up getting other parts of the stack window too. Is this a problem of relative vs. absolute coordinates? Thanks for the quick response! Rick Harrison ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Label an Image with Text?
> I was wondering if there is a way in Rev to paint a text label > onto a jpeg image file and then save it as part of the jpeg file > when I export it. You mean like taking group of text and rendering it into an image? Well, there is no native way to do this, but what you can do is this... 1. Put the text you want into a fld. 2. Take a snapshot of the fld. 3. figure out where in the imageData of the "main" image that you want to insert the imageData from the snapshot. That method will take a VERY long time as you have to parse the main image pixel by pixel. The other method is this, but if the image is larger than the stack then it will get cut off. 1. Put the text you want into a fld. 2. Place the fld where you want it to appear over the image. 3. Take a snapshot of the image. Derek Bump Dreamscape Software Compress Images Easily with JPEGCompress http://www.dreamscapesoftware.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Label an Image with Text?
Hi there, I was wondering if there is a way in Rev to paint a text label onto a jpeg image file and then save it as part of the jpeg file when I export it. (I also noticed the lack of a text tool for doing that in the paint tools.) Anyone? Thanks in advance! Rick Harrison ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution