You could just create new instance of the REALpicture then copy the pixel data
into it.
On 2.11.2012, at 20:19, Ruslan Zasukhin wrote:
> Hi Guys,
>
> I cannot see what is official/best way for Cocoa Target to create
> REALpicture?
>
> We have used on MAC OS for this
> PicHandle -> REALBuildPictureFromPicHandle -> REALpicture
>
> But now this method is deprecated.
>
>
> I did fast attempt to use REALBuildPictureFromPictureDescription(),
> Packing PicHandle, but it just returns nil.
>
>
> Any hints for right direction?
>
>
>
> /********************************************************************/
> #if FBL_MAC && TARGET_COCOA
>
> REALpicture REALBuildPictureFromPicHandle( PicHandle pic, Boolean
> bPassOwnership )
> {
> REALpicture res = nil;
>
> REALpictureDescription ds = {0};
>
> ds.pictureType = pictureMacintoshPICT;
> ds.pictureData = pic;
>
> res = REALBuildPictureFromPictureDescription( &ds, bPassOwnership );
>
> return res;
> }
>
> #endif // FBL_MAC && TARGET_COCOA
> /********************************************************************/
>
>
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
--
______________________________________________________________________
Björn Eiríksson [email protected]
Einhugur Software
http://www.einhugur.com/
______________________________________________________________________
Einhugur Software has sold its products in 87 countries world wide.
______________________________________________________________________
For support: [email protected]
To post on the maillist: [email protected]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>