Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Creating 8-bit indexed image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating 8-bit indexed image



On Apr 29, 2005, at 14:46, George Warner wrote:

rowBytes &= 0x3fff; // Mask out top 2 reserved bits.

OUCH! Don't do this! Changes are that this is no longer necessary plus on
large pixmaps (> 4K 32-bit pixels wide) rowbytes is a long not a short. Your
GetBits method should be using the GetPixMapRowBytes API which "does the
right thing" in all cases.

Hmm, I'd never heard of such a thing. Every pixmap I see has at least one of the two high bit flags set. Man, now I'm going to have to go through all our code and find change this. Not that we ever make bitmaps large enough that it would max it out. Although in the future we'll be increasing our max doc size, so it could happen then.


Regardless, any ideas about my actual question?

_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
email@hidden                       www.multi-ad.com

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


References: 
 >re: Creating 8-bit indexed image (From: George Warner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.