On 11/2/12 11:19 PM, "Christian Schmitz" <[email protected]> wrote:
Hi Christian, > On 02.11.2012, at 21:19, Ruslan Zasukhin <[email protected]> > wrote: > >> Hi Guys, >> >> I cannot see what is official/best way for Cocoa Target to create >> REALpicture? > > Check SDK, there a functions to build picture from buffer. I see only 2 in header: REALpicture REALBuildPictureFromGWorld( void *world, Boolean bPassOwnership ); REALpicture REALBuildPictureFromPictureDescription( REALpictureDescription *description, Boolean bPassOwnership ); >> We have used on MAC OS for this >> PicHandle -> REALBuildPictureFromPicHandle -> REALpicture >> > > PicHandle is dead. You need to use other things. Which? :) 1) we get from DB usually JPG. can we send to RS just a JPG? As is? Looking on PictureDescription enum, I see that we cannot. Exists Gworld. Is it also deprecated for Cocoa? Then what is modern picture format for RB SDK? // picture types and description enum { pictureUnknown, pictureMacintoshPICT, pictureMacintoshCICN, pictureMacintoshIconSuite, pictureMacintoshGWorld, pictureWin32DIB, // a HDIB, use GlobalLock on it pictureGdkPixmap, pictureWin32Bitmap, // a HBITMAP, but really a DIBSECTION, use GetObject on it pictureCGBitmapContext, pictureGDPtr, // Console Only: Pointer to a copy of GD data, which is 11 bytes meta data then pixels follow in ARGB format pictureGDImagePtr, // Console Only: Pointer to gdImageStruct pictureGDIPlusBitmap, // a GpBitmap handle pictureCairoContext // a cairo_t ptr }; -- 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>
