realbasic-games
[Top] [All Lists]

Re: Flipping a picture

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Flipping a picture
From: Joel Reymont <joelr1 at gmail dot com>
Date: Mon, 27 Jun 2005 20:05:58 +0200
Delivered-to: realbasic-games at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=Hx60fAttHNOpLqokliQ0dgfNYou7QD5mZ5yUNPJQOfhsImDHloYdNANv33y9qP2BkE5NRpLaCgEBkTQf1wFBwnh7NKWTkQWNVpcgOTI7Oi31sr1MuDGyffa//3Bdp3FQ76I4CAeeVcmHGgQp8dihXFvm/YpTAcokKTJHuR2ogrY=
References: <263AFD9E-BFBF-49F1-BF85-D5706AD19441 at gmail dot com> <a0620072dbee5d8d25316 at [10 dot 10 dot 13 dot 4]> <4CE76E7F-9F4A-43E0-85B4-8E5150676A5F at gmail dot com> <94c62357e5b111bb81dd1dd53e4e91dd at mobleybros dot com>
For some reason the dest.Graphics.DrawPicture below does not copy the mask. I get my picture drawn on a white background. If, on the other hand, I add an extra DrawPicture for the mask then my shadows are of non-black color. What's going on here?

     Thanks, Joel

On Jun 27, 2005, at 7:07 PM, Phil M wrote:

  If source.Depth < 16 Then
    // have to fix the picture so that there is an RGBSurface
    // so temporarily use dest to hold the new source
    dest = NewPicture(source.Width, source.Height, 32)
    dest.Graphics.DrawPicture(source, 0, 0)
    source = dest
  End If

--
http://wagerlabs.com/tech


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

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

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