• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Compositing to custom view in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Compositing to custom view in Cocoa


  • Subject: RE: Compositing to custom view in Cocoa
  • From: "Kenny Millar" <email@hidden>
  • Date: Fri, 30 Jun 2006 15:36:23 +0100
  • Organization: Kenny Millar

Because I need to change the foreground colour too, and every location on
the 'screen' can have a different forground/background colour.

So it could look like this....
http://www.kmillar.co.uk/mac/_AQ_color.bmp

-Kenny

-----Original Message-----
From: I. Savant [mailto:email@hidden]
Sent: 30 June 2006 15:23
To: email@hidden
Cc: email@hidden
Subject: Re: Compositing to custom view in Cocoa


   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.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Compositing to custom view in Cocoa
      • From: George Orthwein <email@hidden>
    • Re: Compositing to custom view in Cocoa
      • From: "I. Savant" <email@hidden>
References: 
 >Re: Compositing to custom view in Cocoa (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Compositing to custom view in Cocoa
  • Next by Date: Re: how do I make sure a certain app opens a file without using openFile: withApplication:?
  • Previous by thread: Re: Compositing to custom view in Cocoa
  • Next by thread: Re: Compositing to custom view in Cocoa
  • Index(es):
    • Date
    • Thread