• 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: incorrect bitmap date from NSBitmapImageRep from NSDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrect bitmap date from NSBitmapImageRep from NSDate


  • Subject: Re: incorrect bitmap date from NSBitmapImageRep from NSDate
  • From: Alexander Spohr <email@hidden>
  • Date: Fri, 12 Mar 2010 14:16:06 +0100

Exactly what does not work?
The loading? Or the opengl command?

If the latter I suspect that your file is not in the needed format.
Does your image have alpha?

	atze



Am 12.03.2010 um 13:09 schrieb Ariel Feinerman:

> // not work
>
> NSData *data = [NSData dataWithContentsOfFile: filename];
>
> NSBitmapImageRep *image = [[NSBitmapImageRep alloc] initWithData: data];
>
>
> as opposed to:
>
> // works fine
>
> NSImage *source = [[NSImage alloc] initWithContentsOfFile: filename];
>
> NSSize size = [source size];
>
> [source lockFocus];
>
> NSBitmapImageRep *image = [[NSBitmapImageRep alloc] initWithFocusedViewRect:
> NSMakeRect(0.0, 0.0, size.width, size.height)];
>
> [source unlockFocus];
>
>
> // OpenGL commands
>
>
> gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, [image pixelsWide], [image
> pixelsHigh], GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, [image bitmapData]);
>
> why?
>
>
> as opposed to
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >incorrect bitmap date from NSBitmapImageRep from NSDate (From: Ariel Feinerman <email@hidden>)

  • Prev by Date: Re: Use of KVC Array operators
  • Next by Date: Re: Bison/Yacc with Objective-C ?
  • Previous by thread: incorrect bitmap date from NSBitmapImageRep from NSDate
  • Next by thread: Re: incorrect bitmap date from NSBitmapImageRep from NSDate
  • Index(es):
    • Date
    • Thread