[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. Advertising

  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. Advertising

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:
    354
    =?Utf-8?B?QWFtaXIgSXNsYW0=?=
    Apr 7, 2004
  2. micky

    appying alpha value in css

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

    [pygame-bug] Pygame.cdrom bug

    rantingrick, Jan 30, 2011, in forum: Python
    Replies:
    1
    Views:
    290
    Benjamin Kaplan
    Jan 30, 2011
Loading...

Share This Page