Alpha Channel and CopyPixels

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Re: Alpha Channel and CopyPixels

    it looks like you are copying into the alpha channel of the destination
    image. Try creating a temp image to composeand then copy to the
    destination image, also is always sane to use image duplicate()'s.
    Something like:


    textimage= member(YourTextMember).image.extractAlpha().duplic ate()
    img = member(YourImageMember).image.duplicate()
    img.copyPixels(textimage, textimage.rect, YourDestinationRect)
    member("FinalImage").image = img

    It worked for me ;) (W2K + DMX)

    Hope it helps.

    regards

    D.

    "PHenry" [email]webforumsuser@macromedia.com[/email] wrote:
    > I am trying to use copypixels to copy text from a text cast member onto a image cast member. The image is 32 bit with a tranparent background. I need the alpachannel on to avoid a halo due to antialiasing of the image, but this causes the background behind the text I copy onto the member to create a transparent hole in the image. I've tried every ink for the copypixels and for the cast member, and I've tried changing background colours, nothing works.
    >
    > I am using Director MX(9.0), and I don't think this was a problem in Director 8.0. I am running windows XP.
    >
    > Any ideas how to avoid this problem.
    >
    > Patrick
    >
    >
    >
    Daniel Pliscoff Guest

  2. Similar Questions and Discussions

    1. Using Cast Member as Alpha Channel
      Hello, I am trying to assign a texture, present in the cast, to be used as the alpha channel - so the texture can be semi-transparent. You know,...
    2. Creating overlays with an alpha channel
      Here are two methods to create textures for an overlay, depending upon its usage: * Easiest way to create an opacity mask (giving a shape to...
    3. Alpha channel query
      I would like to know what will happens in the follow senario it is a CMYK job. I have a colour page. A section of it is covered with a alpha...
    4. Alpha Channel from B&W layer
      I know how to create an alpha channel and paint in your mask using black and white. My question is this: How can you take an already black and white...
    5. Alpha channel direct manipulation
      Hi, I've this problem: I want separate layer mask and RGB pixels. When I create mask from the image, using Ctrl-clicked selection (= selection...
  3. #2

    Default Re: Alpha Channel and CopyPixels

    this page on my site gives some nice copyp tutes.

    [url]http://www.geocities.com/hairybobby2000/copypdemos.html[/url]

    this page gives an example of how to copy a text member and turn it into a PNG image - of the exact perfect size.

    [url]http://www.geocities.com/hairybobby2000/textfxmake2.html[/url]

    It may not be exactly what your after but I hope it helps a little.






    HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp

    [url]http://www.geocities.com/hairybobby2000[/url]

    Photograpghy section

    [url]http://www.geocities.com/hairybobby2000/px1.html[/url]

    Photoshop section

    [url]http://www.geocities.com/hairybobby2000/photo1.html[/url]
    hairybobby webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139