in

Archived Data Techniques Forums

Overlayng an image with transparency

Last post 04-24-2009 9:59 AM by Aloepages2. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-24-2009 3:20 AM

    Overlayng an image with transparency

    I'm trying to overlay a triangular shaped image onto a larger rectangular shaped image to achieve something like this:

    example

    I've played around with the Merge option but I can't make it knock out the trasparent background.

    I'm using the activeX suite through ASP. Can anyone tell me if this is possible using Imageman?

    Ed.

    Filed under:
  • 04-24-2009 9:18 AM In reply to

    Re: Overlayng an image with transparency

    Hi,

    Yes, you can do this. You'll have a small rectangular image with the triangle and then the rest of the image ie the part that will be transparent a specific color.When you call Merge you'll specify that this color is transparent. You can use the Trans Option and then pass the RGB value of the transparent color.

    Sean
    Data Techniques Online Support
  • 04-24-2009 9:59 AM In reply to

    Re: Overlayng an image with transparency

    Thank you,

    I have tried using the merge option with various parameters but I'm using Imageman through ASP, so I can't use the example in the help option.

    Does the Trans Option have a numeric value I could use? I've tried 1 to 15 all giving slightly different results.

    My code is currently:

    im.Merge im2, 0, 0, 1, 254, RGB(255,255,255)

    where im is http://www.mountford.co.uk/resources/test.jpg

    and im2 is http://www.mountford.co.uk/resources/overlay.jpg

    my result is http://www.mountford.co.uk/featuredimage/test2.jpg

Page 1 of 1 (3 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.