[interfacekit] Re: BPicture

> I checked it in under /current/docs/develop/interface.  Great document
> Marc; you've been doing some serious poking about with the debugger,
> haven't you? ;)
>
> e
>

Actually no ^_^, I Archived a picture, extracted the "data" field from the
message, wrote it to a file and started to read the hex data. It didn't took
me long to see a pattern, the id-size header. So I wrote a little piece of
code to write out all the instructions, and checked them with a list made by
BPicture::Play(). I matched the id's, so the only thing left was checking
the data portions, most of the time they match the BPicture::Play()
callbacks, only in some cases they were different (like Stroke/FillEllipse
has a BRect, while the callback takes center + radii). The shape draw
instructions took a bit longer, since the data contains custom instructions.
I only used the debugger to check if the internal BPicture data matches the
same instruction set, and it does. I wish I could check what's sent to the
app_server, since it's possible the same protocol is used, which could mean
that the missing instructions are instructions like DrawBitmap and
DrawPicture.

Marc Flerackers (mflerackers@xxxxxxxxxx)
Software Engineer
ANDROME NV


Other related posts: