• 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: BitMap data format and autorelease
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BitMap data format and autorelease


  • Subject: Re: BitMap data format and autorelease
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 12 Mar 2008 12:57:55 -0700


On 12 Mar '08, at 12:01 PM, Trygve Inda wrote:

(1) draw an NSImage into this bitmap
(2) draw some semi-opaque text over the bitmap

As I said, call -lockFocus on the imagerep. Then issue drawing commands (just as though you were in a view's -drawRect: method). Then calll -unlockFocus.


(3) save it as a new jpg.

@interface NSBitmapImageRep (NSBitmapImageFileTypeExtensions)
- (NSData *)representationUsingType:(NSBitmapImageFileType)storageType properties:(NSDictionary *)properties;


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: BitMap data format and autorelease
      • From: Trygve Inda <email@hidden>
References: 
 >Re: BitMap data format and autorelease (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: memory warnings
  • Next by Date: Re: Core Animation geometry, layer hosting, and resolution independence
  • Previous by thread: Re: BitMap data format and autorelease
  • Next by thread: Re: BitMap data format and autorelease
  • Index(es):
    • Date
    • Thread