Am I misunderstanding something here, am getting NULL for the pixels, should I 
be using some other
variation of the REALLockPictureDescriptionWithNativeType ?

REALLockPictureDescriptionWithNativeType(picture, &src->pictureDescription);
                
if(src->pictureDescription.pictureType == pictureGDImagePtr)
{
        src->gdData = 
((gdImageStruct*)(src->pictureDescription.pictureData))->pixels;

                        
        if(src->gdData  == NULL)
        {
                DebugStr("\pGDImagePtr->pixels was NULL");
        }
}

where the pixels are defined here:

typedef struct gdImageStruct {
        unsigned char ** pixels;
        int sx;
        int sy;
        int colorsTotal;
        int red[gdMaxColors];
        int green[gdMaxColors];
        int blue[gdMaxColors]; 
        int open[gdMaxColors];
        int transparent;
        int *polyInts;
        int polyAllocated;
        struct gdImageStruct *brush;
        struct gdImageStruct *tile;     
        int brushColorMap[gdMaxColors];
        int tileColorMap[gdMaxColors];
        int styleLength;
        int stylePos;
        int *style;
        int interlace;
} gdImage;

Thanks

Björn

On 8.2.2011, at 00:48, Christian Schmitz wrote:

> 
> On 08.02.2011, at 01:36, Björn Eiríksson wrote:
> 
>> Yes thats exactly it ! Seems I somehow missed it. Is it on all platforms 
>> using that ?
> 
> Yes. And that's the good news. One format for all platforms :-)
> 
> Greetings
> Christian
> 
> -- 
> See you in Atlanta (USA) at the REAL Studio Summit 2011
> 
> Registration and details here:
> http://arbpmembers.org/real-studio-summit-2011/
> 
> 
> 
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to