+ /* create the planar buffer */\r
+ p = planar_buf_from_bitmap(&bmp);\r
+\r
+ /* print out the contents of each plane */\r
+ for(plane=0; plane < 4; plane++) {\r
+ i=0;\r
+ printf("Plane %d\n", plane);\r
+ for(y=0; y < p->height; y++) {\r
+ for(x=0; x < p->pwidth; x++) {\r
+ printf("%02X ", (int) p->plane[plane][i++]);\r
+ }\r
+ printf("\n");\r
+ }\r
+ }
+ /*__asm
+ {
+ mov ah,31h
+ int 21h
+ }*/
+
+// file = fopen("ptmp0.pcx", "wb");
+\r
+ /* write the data to the file */\r
+ //fwrite(p, 1, p->width*p->height, file);\r
+ //fclose(file);\r