png and transparency

Discussion in 'iOS Programming' started by MACloop, Feb 23, 2010.

  1. MACloop macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #1
    Hi,
    does anyone have problem when adding png:s including transparency to an iPhone App? It seems as is there a small shadow around the image. Is there a way to convert transparent png:s in order to make it work in an App?
    Thanks in advance!
    MACLoop
     
  2. bredell macrumors regular

    Joined:
    Mar 30, 2008
    Location:
    Uppsala, Sweden
    #2
    I've never had any problems with transparency. One of my apps uses five large and mostly transparent images on top of each other and move them around independently, and I don't see any problems.

    It sounds as if there's something wrong with the images you try to use.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Never had a problem here either. How are you creating these PNGs, MACloop?
     
  4. HarryWorksInc macrumors regular

    Joined:
    Feb 21, 2010
    #4
    alpha

    i just do this

    image.alpha = transparencyAmount;

    and that should make your image transparent
     
  5. MACloop thread starter macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #5
    Thank you all for the answers! It is good to know that you all are able to user pngs without problems. It is probably something that we have to do differently when creating our png:s. I will have to talk to our designer about this issue.
    Again - thanks alot!
    MACloop
     

Share This Page