Oleg,

I'm getting some strange behavior when using platimg.
Consider the following two pictures:

   require 'media/platimg'
   img=:5 7 3 $ 0
   img writeimg 'picture1.bmp'
140
   img=:6 8 3 $ 0
   img writeimg 'picture2.bmp'
192

Well, picture1.bmp is displayed as a checkered,
while picture2.bmp as a striped black and white picture
in any number of graphing programs, with the correct
resolution.  

Here are more info: (it's Linux 2.6.28-17-generic #58-Ubuntu SMP x86_64
GNU/Linux)

   require'dll'
   ' ',~ find_dll 'gobject-2.0'
/usr/lib/libgobject-2.0.so.0.2000.1 
   ' ',~ find_dll 'gdk_pixbuf-2.0'
/usr/lib/libgdk_pixbuf-2.0.so.0.1600.1 


$ hexdump picture1.bmp
0000000 4d42 00ae 0000 0000 0000 0036 0000 0028
0000010 0000 0007 0000 0005 0000 0001 0018 0000
0000020 0000 0078 0000 0000 0000 0000 0000 0000
0000030 0000 0000 0000 0000 ff00 ffff 0000 ff00
0000040 ffff 0000 ff00 ffff 0000 0000 0000 ffff
0000050 00ff 0000 ffff 00ff 0000 ffff 00ff 0000
0000060 ffff 65ff 2d72 0000 ff00 ffff 0000 ff00
0000070 ffff 0000 ff00 ffff 0000 6200 6c6f ffff
0000080 00ff 0000 ffff 00ff 0000 ffff 00ff 0000
0000090 ffff 00ff 0000 0000 ff00 ffff 0000 ff00
00000a0 ffff 0000 ff00 ffff 0000 6c00 6269     
00000ae

$ hexdump picture2.bmp
0000000 4d42 00c6 0000 0000 0000 0036 0000 0028
0000010 0000 0008 0000 0006 0000 0001 0018 0000
0000020 0000 0090 0000 0000 0000 0000 0000 0000
0000030 0000 0000 0000 0000 ff00 ffff 0000 ff00
0000040 ffff 0000 ff00 ffff 0000 ff00 ffff 0000
0000050 ff00 ffff 0000 ff00 ffff 0000 ff00 ffff
0000060 0000 ff00 ffff 0000 ff00 ffff 0000 ff00
0000070 ffff 0000 ff00 ffff 0000 ff00 ffff 0000
0000080 ff00 ffff 0000 ff00 ffff 0000 ff00 ffff
0000090 0000 ff00 ffff 0000 ff00 ffff 0000 ff00
00000a0 ffff 0000 ff00 ffff 0000 ff00 ffff 0000
00000b0 ff00 ffff 0000 ff00 ffff 0000 ff00 ffff
00000c0 0000 ff00 ffff                         
00000c6

I'm getting the same behavior when saving .png and .tiff formats.



Oleg Kobchenko wrote:
> 
>> From: Yuvaraj Athur Raghuvir <yuvaraj....@gmail.com>
> 
>> 
>> Hello,
>> 
>> I want to experiment with UI representations. For this I want to create a
>> canvas with a palette (line, arrow, circle, rectangle, text block etc).
>> 
>> Any ideas on how I can proceed using wd?
>> 
>> I am using Win XP as the OS.
> 
> Take a look at the 'media/paint' addon.
> 
>    load'media/paint'
> 
> 
>       
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-create-an-interactive-UI--tp27069906s24193p27080480.html
Sent from the J Programming mailing list archive at Nabble.com.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to