paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] PG_Image::SetColorKey ???


From: Andrew Ford
Subject: Re: [paragui-users] PG_Image::SetColorKey ???
Date: Wed, 17 Jul 2002 17:08:55 -0700 (PDT)

If you're talking about adding another method, then no
(for this version) because of binary compatability. 
What you can do in the mean time is either subclass
for yourself, or manipulate the existing PG_Image
instance's SDL_Surface directly with the SDL API
functions.

Andrew

--- Keith Swyer <address@hidden> wrote:
> i was thinking that it would be nice to allow for a
> PG_Image to have a
> transparent surface given a color.
> 
> 
> void SetColorKey (Uint8 R, Uint8 G, Uint8 B){
>   ColorKey=SDL_MapRGB(my_image->format, R, G, B);
>   SDL_SetColorKey(my_image,
> SDL_SRCCOLORKEY,ColorKey);
>  }
> 
> 
> alex? andrew?
> 
> yes or no?
> 
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]