[futurebasic] Re: [FB] Saving images as JPEG

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2003 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Sun, 25 May 2003 19:54:29 -0400
On Sunday, May 25, 2003, at 07:11  PM, Craig Hoyt wrote:

> Thanks again to rc and Alain for their code to save an image as a JPEG.
> Today I had an opportunity to give the code a try. I'm getting compile
> errors and I'm not sure what the problem is. I tried both rc's and 
> Alain's
> in my app and even tried Alain's as a stand alone.  Below is what I 
> get..
> how do I resolve this? I'm using FBr7 standard runtime/carbon compile. 
> Do I
> need to include something?
>
> Thanks,
> Craig
>
> Error: Functions must be defined before using...
> in file Auction.proj:AUCTION.MAIN at line 1782 in SAVEPICTASJPEGFIIE
> *err = Fn OpenADefaultComponent*( _"grex",_"JPEG", @ge )
>
> Error: Functions must be defined before using...
> in file Auction.proj:AUCTION.MAIN at line 1784 in SAVEPICTASJPEGFIIE
> *err = Fn GraphicsExportSetInputPicture*( ge, PictH )
>
> Error: Functions must be defined before using...
> in file Auction.proj:AUCTION.MAIN at line 1788 in SAVEPICTASJPEGFIIE
> *err = Fn GraphicsExportSetOutputFile*( ge, #fileSpec )
>
> Error: Functions must be defined before using...
> in file Auction.proj:AUCTION.MAIN at line 1792 in SAVEPICTASJPEGFIIE
> *err = Fn GraphicsExportSetResolution *(ge,Fn Long2Fix(xDpi),Fn
> Long2Fix(yDpi) )
>
> Error: Functions must be defined before using...
> in file Auction.proj:AUCTION.MAIN at line 1794 in SAVEPICTASJPEGFIIE
> *err = Fn GraphicsExportSetCompressionQuality*(ge,_codecNormalQuality)
>
> Error: Functions must be defined before using...
> in file Auction.proj:AUCTION.MAIN at line 1796 in SAVEPICTASJPEGFIIE
> *err = Fn GraphicsExportSetOutputFileTypeAndCreator*(ge,format,fCrtr)
>
> Error: Functions must be defined before using...
> in file Auction.proj:AUCTION.MAIN at line 1799 in SAVEPICTASJPEGFIIE
> *err = Fn GraphicsExportDoExport*( ge, #_nil )
>
> ********* End of PPC Code Compile *********
> ************* End of Compile **************
>  Warnings: 0
>    Errors: 7
> ======================================================================
> Aztech Professional On-Site Service
>
> * Craig Hoyt
> * Phone: 818-773-0864   Fax: 818-773-0675
> * E-mail: craig@...
> * Web: http://www.aztech4mac.com
>
> Macintosh Technology Solutions Since 1984
> =======================================================================
>
> --
> To unsubscribe, send ANY message to 
> <futurebasic-unsubscribe@...>
>