4 Replies Latest reply on Nov 22, 2006 4:28 AM by Newsgroup_User

    alpha channel and imaging lingo

    Level 7
      I have a 32 bit image with an alpha channel. When placed on the stage only
      the black anti-aliased text shows and no background shows (using the copy
      ink)

      I'm scrolling this image with imaging lingo where I take a sliding portion
      of the original image in one direction or the other. When I do this the
      background of the portion on the stage is white instead of transparent.

      I'm creating an image and assign a portion of the text image to it. I tried
      pImage.useAlpha = TRUE but I get an error saying the property can't be set
      which is rediculous I know. pImage is definitely an image, I checked it
      with the debugger.

      useAlpha might not be the correct solution but it brought up a second
      question. First, how can I maintain the alpha channel with imaging Lingo
      and second why do I get the error telling me that the useAlpha property
      can't be set?

      Craig


      --
      Craig Wollman
      Lingo Specialist
      Word of Mouth Productions
      212-928-9581

      www.wordofmouthpros.com


        • 1. Re: alpha channel and imaging lingo
          Level 7
          Hi Craig - care to post some code?
          • 2. Re: alpha channel and imaging lingo
            Level 7
            Sorry, Sean. I should have but then you'd see how much of a neanderf*** I
            am. I had reused some parts of old code and was creating a 16 bit image.
            Now that I've change the bit depth to 32, the useAlpha property can be set
            and everything is cool

            Thanks.

            --
            Craig Wollman
            Lingo Specialist
            Word of Mouth Productions
            212-928-9581

            www.wordofmouthpros.com
            "Sean Wilson" <webforumsuser@macromedia.com> wrote in message
            news:ek09jg$30m$1@forums.macromedia.com...
            > Hi Craig - care to post some code?


            • 3. Re: alpha channel and imaging lingo
              Lukewig Level 1
              Hi Craig,

              If "pImage.useAlpha = TRUE" gives a 'cannot set this property" error, then pImage.depth is less than 32. Change your code to something like this to confirm:

              if pImage.depth < 32 then put "oops, no alpha to use"
              else pImage.useAlpha = TRUE

              As how to "maintain the alpha channel with imaging Lingo", I gotta scratch my head each time (its kind of counter-intuitive). Basic rule of thumb is turn off alphas for copypixel operations, extract your alphas and copypixel them separately, and then reset the alpha of the final composite image (of course, the details depend on whether your are wanting to combine your alphas or not).

              -- Luke
              • 4. Re: alpha channel and imaging lingo
                Level 7
                Thanks. You're right, I did need to create the image in 32 bits but
                otherwise I only needed to set useAlpha to TRUE and the alpha was maintained
                perfectly without any other changes.

                --
                Craig Wollman
                Lingo Specialist
                Word of Mouth Productions
                212-928-9581

                www.wordofmouthpros.com
                "Lukewig" <webforumsuser@macromedia.com> wrote in message
                news:ek0ibj$c9k$1@forums.macromedia.com...
                > Hi Craig,
                >
                > If "pImage.useAlpha = TRUE" gives a 'cannot set this property" error, then
                > pImage.depth is less than 32. Change your code to something like this to
                > confirm:
                >
                > if pImage.depth < 32 then put "oops, no alpha to use"
                > else pImage.useAlpha = TRUE
                >
                > As how to "maintain the alpha channel with imaging Lingo", I gotta scratch
                > my
                > head each time (its kind of counter-intuitive). Basic rule of thumb is
                > turn off
                > alphas for copypixel operations, extract your alphas and copypixel them
                > separately, and then reset the alpha of the final composite image (of
                > course,
                > the details depend on whether your are wanting to combine your alphas or
                > not).
                >
                > -- Luke
                >
                >