Masks Not Working?

  1. ‹ Older
  2. 8 weeks ago

    Derk J

    Feb 13 Pre-Release Testers, Xojo Pro

    Where is the "white requirement" documented?
    Is it because Graphics.ClearRectangle is normally used to clear or ?

  3. Anthony C

    Feb 13 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store, Forum Moderators, MVP GraffitiSuite Developer
    Edited 8 weeks ago

    A mask is a grayscale representation of the desired alpha channels. With the transparency support, the entire picture of the desired mask is, by default, transparent, which is then turned to fully opaque when used as a mask due to the framework changing the alpha value of the color. Adding the white fill sets that area to fully transparent when it is used as a mask.

  4. Anthony C

    Feb 13 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store, Forum Moderators, MVP GraffitiSuite Developer
    Edited 8 weeks ago

    @Derk J Where is the "white requirement" documented?

    I don't know that it is documented anywhere, just speaking from extensive experience.

    @Derk J Is it because Graphics.ClearRectangle is normally used to clear or ?

    ClearRectangle on an Alpha channel picture will clear it to a fully transparent surface, which is unsuitable for a mask.

or Sign Up to reply!