[pygame]how to copy a surface to an other surface with alpha value?

Discussion in 'Python' started by flyaflya, Jul 26, 2005.

  1. flyaflya

    flyaflya Guest

    I want to join some surfaces to a new big surface with alpha cannel, I want
    the new surface has same pixels(inclue r,g,b and alpha value) as the pixels
    on the source surfaces.
    my code as follow:

    surf = pygame.Surface((200,200))
    surf.blit(surf1, (0,0))
    surf.blit(surf2, (0,100))
    ......

    but these codes can't copy alpha value to the new surface.how can I deal
    with it?
     
    flyaflya, Jul 26, 2005
    #1
    1. Advertisements

  2. flyaflya

    Devan L Guest

    flyaflya wrote:
    > I want to join some surfaces to a new big surface with alpha cannel, I want
    > the new surface has same pixels(inclue r,g,b and alpha value) as the pixels
    > on the source surfaces.
    > my code as follow:
    >
    > surf = pygame.Surface((200,200))
    > surf.blit(surf1, (0,0))
    > surf.blit(surf2, (0,100))
    > .....
    >
    > but these codes can't copy alpha value to the new surface.how can I deal
    > with it?


    Try the pygame mailing list or irc channel.
    http://www.pygame.org/info.shtml
     
    Devan L, Jul 27, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QWFtaXIgSXNsYW0=?=

    Any help regarding the building of a Web Forms Designer Surface?

    =?Utf-8?B?QWFtaXIgSXNsYW0=?=, Apr 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    464
    =?Utf-8?B?QWFtaXIgSXNsYW0=?=
    Apr 7, 2004
  2. Charlie@CBFC
    Replies:
    0
    Views:
    506
    Charlie@CBFC
    Sep 15, 2005
  3. micky

    appying alpha value in css

    micky, Dec 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    3,074
    Bruce Barker
    Dec 16, 2005
  4. Alex
    Replies:
    2
    Views:
    1,610
  5. Replies:
    26
    Views:
    2,572
    Roland Pibinger
    Sep 1, 2006
  6. rantingrick

    [pygame-bug] Pygame.cdrom bug

    rantingrick, Jan 30, 2011, in forum: Python
    Replies:
    1
    Views:
    532
    Benjamin Kaplan
    Jan 30, 2011
  7. Joao Silva
    Replies:
    4
    Views:
    168
    Stefan Rusterholz
    Dec 10, 2008
  8. VUNETdotUS
    Replies:
    25
    Views:
    891
    Thomas 'PointedEars' Lahn
    Nov 10, 2007
Loading...