Added some information found while writing BPicture, TPicture and ServerPicture
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3992 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ce072df2d0
commit
e793a55e78
@ -9,8 +9,12 @@
|
|||||||
content="BPicture specifications for OpenBeOS">
|
content="BPicture specifications for OpenBeOS">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<span style="font-weight: bold; text-decoration: underline;">Picture
|
<span style="font-weight: bold; text-decoration: underline;"></span>Author:
|
||||||
data</span><br>
|
Marc Flerackers<br>
|
||||||
|
Revision: 1.4<br>
|
||||||
|
<span style="font-weight: bold; text-decoration: underline;"></span><span
|
||||||
|
style="font-weight: bold; text-decoration: underline;"><br>
|
||||||
|
Picture data</span><br>
|
||||||
<br>
|
<br>
|
||||||
The data of a BPicture is composed of instructions.<br>
|
The data of a BPicture is composed of instructions.<br>
|
||||||
<br>
|
<br>
|
||||||
@ -185,7 +189,7 @@ float deltay<br>
|
|||||||
<td valign="top">0x0110 </td>
|
<td valign="top">0x0110 </td>
|
||||||
<td valign="top">DrawPixels<br>
|
<td valign="top">DrawPixels<br>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top">52 + pixel data size<br>
|
<td valign="top">56 + pixel data size<br>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top">BRect src<br>
|
<td valign="top">BRect src<br>
|
||||||
BRect dest<br>
|
BRect dest<br>
|
||||||
@ -194,6 +198,7 @@ int32 height<br>
|
|||||||
int32 bytesPerRow<br>
|
int32 bytesPerRow<br>
|
||||||
int32 pixelFormat<br>
|
int32 pixelFormat<br>
|
||||||
int32 flags<br>
|
int32 flags<br>
|
||||||
|
int32 length of pixel data<br>
|
||||||
pixel data<br>
|
pixel data<br>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -512,17 +517,19 @@ There are a few undocumented instructions:<br>
|
|||||||
<td valign="top">SetFontBPP </td>
|
<td valign="top">SetFontBPP </td>
|
||||||
<td valign="top">4<br>
|
<td valign="top">4<br>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top"> int32 bpp </td>
|
<td valign="top"> int32 bpp (default 8)<br>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
Also, not all instructions where checked yet. The SetClippingRects and
|
Not all instructions where checked yet. The SetClippingRects has still
|
||||||
DrawPixels data has still to be documented.<br>
|
to be documented.<br>
|
||||||
<br>
|
<br>
|
||||||
Regarding DrawPicture and ClipToPicture, it seems the pictures to draw
|
DrawPicture and ClipToPicture have an index to the sub-picture. In
|
||||||
are not inside the flattened data, instead they are stored as messages
|
flattened data, these sub-pictures are stored in front of the main
|
||||||
in the BMessage in a field called "piclib".<br>
|
picture data, when archived to a BMessage, the sub-pictures are
|
||||||
|
contained in a field called "piclib".<br>
|
||||||
<br>
|
<br>
|
||||||
<span style="font-weight: bold; text-decoration: underline;">Shape data</span><br>
|
<span style="font-weight: bold; text-decoration: underline;">Shape data</span><br>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
Reference in New Issue
Block a user