Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange crash of CGContextDrawImage



On Jun 27, 2007, at 03:32 AM, Chen, Jeff wrote:

We have to support 10.3, so I have changed the way to get the CGImageRef. (Use CGImageCreate instead of CGBitmapContextCreateImage)

I doubt the way I use CGImageCreate() cause this crash, but it’s strange that when the font size is small, it works well.

So is there anyone here know why?

Try it with CGBitmapContextCreateImage(). If that works and you don't see any image distortion, then it's something with how your creating your manually creating your CGImage. If it doesn't work, then you probably have some form of memory corruption (it shouldn't be in the drawing code, as the context won't draw outside it's given buffer).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Strange crash of CGContextDrawImage (From: "Chen, Jeff" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.