[futurebasic] Re: [FB] Tiff file advice needed

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2007 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Tue, 4 Dec 2007 15:21:17 -0700
On Dec 3, 2007, at 6:28 AM, Joe Lertola wrote:

> The image is saved as a pict handle and later drawn in a gworld.  
> Isn't this a depreciated method of drawing an image? If so what  
> would the alternative be?

Drawing images is a topic unto itself. Yes, many of the gworld calls  
(SetGWorld GetGWorld CopyBits etc.) are technically deprecated in the  
prior OS release (10.4). CopyBits is very fast, so it is hard to give  
up. Depending on your needs for the program it is still possible to  
use deprecated calls. This works fine for one-off or programs that  
are written for short-term use. For longer-term compatibility,   
avoiding deprecated functions is wiser. The recommend substitute is  
CoreGraphics calls (CG) aka Quartz 2D. There is an introduction for  
QuickDraw programmers at: ADC Home > Reference Library > Guides >  
Carbon > Graphics & Imaging > Quartz Programming Guide for QuickDraw  
Developers  in Xcode docs. You might also peruse the many CG demos  
posted over the last 2 years. Plus, the FBtoC examples folder has  
several CG demos.

Brian S.