Author Topic: Problem about UISlicedSprite.  (Read 2810 times)

PidoDido

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Problem about UISlicedSprite.
« on: April 23, 2013, 10:44:03 AM »
Hi, i have a problem about SlicedSprite. theirs a line showing when i was rotating the UISlicedSprite. i dont know when its coming from :(.

Thanks in Advance.
« Last Edit: April 23, 2013, 10:49:35 AM by PidoDido »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem about UISlicedSprite.
« Reply #1 on: April 23, 2013, 03:33:33 PM »
My guess -- the line is in your sprite. You need to bleed the colored edges outwards and ensure that the Alpha (and I do mean Alpha, not Transparency!) is properly clear.

PNGs are a poor choice for source images as all transparent pixels are actually "white" under the hood, as you can see in the image preview you attached. Coincidentally, a white line is exactly what you're seeing. Toggle the Alpha on the Preview window.

Use PSDs whenever possible, TGAs if you can't. Don't use PNGs.

PidoDido

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Problem about UISlicedSprite.
« Reply #2 on: April 24, 2013, 01:07:40 PM »
My guess -- the line is in your sprite. You need to bleed the colored edges outwards and ensure that the Alpha (and I do mean Alpha, not Transparency!) is properly clear.

PNGs are a poor choice for source images as all transparent pixels are actually "white" under the hood, as you can see in the image preview you attached. Coincidentally, a white line is exactly what you're seeing. Toggle the Alpha on the Preview window.

Use PSDs whenever possible, TGAs if you can't. Don't use PNGs.

ahh...  Okay now i know `TGAs  & PSDs  can be compatible in Mobile devices Like Android or IOS ?