realbasic-games
[Top] [All Lists]

Masking Is Funny

To: REALbasic Games <REALbasic-Games at lists dot realsoftware dot com>
Subject: Masking Is Funny
From: Seth Willits <seth at freaksw dot com>
Date: Thu, 15 Jul 2004 01:18:19 -0700
Cc:
Delivered-to: REALbasic-Games at lists dot realsoftware dot com
List-help: <mailto:realbasic-games-request@lists.realsoftware.com?subject=help>
List-id: REALbasic Games <realbasic-games.lists.realsoftware.com>
List-post: <mailto:realbasic-games@lists.realsoftware.com>
  mask = file.OpenAsPicture

  // Create Mask
  mMask = New Picture(mask.Width, mask.Height, 32)
  mMask.Graphics.DrawPicture mask, 0, 0

  // Create Object Shape
  me.AddShapePictureWithMask mImage, mMask, 1.0


For some reason, the final output of the objects is mImage but half translucent. It's as if the mMask image was all gray, but when looking at it in the debugger, it is definitely the way I want it to be. The odd thing is if I even invert the mask image file, the final output doesn't change one bit. It is on the right shape too, so I have no idea why it's doing this. Any ideas?



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic

"What difference is there between us, save a restless dream that follows my
soul but fears to come near you?"
        -- Kahlil Gibran
------------------------------------------------------------------------ ---

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>