FROM : I. Savant
DATE : Fri Jun 30 16:23:01 2006
But why would you do this when you could just change the format of
your graphic to tiff and replace the white background with
transparency? This is relatively simple to do with Photoshop or Gimp,
etc. With Cocoa it's just one line to composite the section of the
image containing your character, retaining the transparency. If your
view is filled with a green background and you composite
(NSCompositeSourceOver) the character image over top this background,
only the text part will show up with the green background showing
through.
--
I.S.
On Jun 30, 2006, at 10:09 AM, Kenny Millar wrote:
> Since the system I'm emulating only supported 16 colors, I could
> just expand
> my 128x128 source image to be 2048x2048 and thereby include every
> possible
> color combination for every character.
DATE : Fri Jun 30 16:23:01 2006
But why would you do this when you could just change the format of
your graphic to tiff and replace the white background with
transparency? This is relatively simple to do with Photoshop or Gimp,
etc. With Cocoa it's just one line to composite the section of the
image containing your character, retaining the transparency. If your
view is filled with a green background and you composite
(NSCompositeSourceOver) the character image over top this background,
only the text part will show up with the green background showing
through.
--
I.S.
On Jun 30, 2006, at 10:09 AM, Kenny Millar wrote:
> Since the system I'm emulating only supported 16 colors, I could
> just expand
> my 128x128 source image to be 2048x2048 and thereby include every
> possible
> color combination for every character.
| Related mails | Author | Date |
|---|---|---|
| Kenny Millar | Jun 30, 13:56 | |
| I. Savant | Jun 30, 15:52 | |
| Kenny Millar | Jun 30, 16:09 | |
| I. Savant | Jun 30, 16:23 | |
| Kenny Millar | Jun 30, 16:36 | |
| I. Savant | Jun 30, 16:45 | |
| George Orthwein | Jun 30, 17:17 | |
| I. Savant | Jun 30, 22:52 | |
| Kenny Millar | Jul 1, 14:37 | |
| Andy Lee | Jul 1, 14:56 | |
| Matt Neuburg | Jul 1, 16:19 |






Cocoa mail archive

