| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 27 Nov 2003, at 16:12, Alexander Cohen wrote:_______________________________________________
in an app, i need to create a drag image for some text. I create the image, then i need to create the region for that text so only the text is dragged, not the whole background. Just like OSX drags text. How can i create the drag region so only the text is dragged and not the background?
If you're using CoreGraphics, you can create a bitmap context, fill it with transparency, then draw your text and create a CGImage from your context. This way you don't have to fiddle with regions. There might be other techniques using Quickdraw.
HTH,
Dario
| References: | |
| >creating image for a text drag (From: Alexander Cohen <email@hidden>) | |
| >Re: creating image for a text drag (From: Dario Accornero <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.