--- bill lam <[EMAIL PROTECTED]> wrote:

> Thank Eric and Oleg for help. I'll try to use bmp script. I didn't test the
> script support compress bmp or not, but I think that will not be too 
> important.
> 
> > glbmp=: glpixels_jgl2_@(0 0,$,,)@[EMAIL PROTECTED]
> 
> I think it should be (0 0,|[EMAIL PROTECTED],,) because glpixels expect x y w 
> h not x y h w
Correct.

> It also need to scale bitmap data before feeding to glpixels

The most GDI stretch blitting can do is nearest neighbor stretching,
which is achieved with simple index mapping (along axis)

   stretch=:  ([EMAIL PROTECTED] <[EMAIL PROTECTED] [EMAIL PROTECTED] % [) { ]

   (i.10) stretch"0 _] 11 22 33 44
 0  0  0  0  0  0  0  0  0
11  0  0  0  0  0  0  0  0
11 33  0  0  0  0  0  0  0
11 22 33  0  0  0  0  0  0
11 22 33 44  0  0  0  0  0
11 11 22 33 44  0  0  0  0
11 11 22 33 33 44  0  0  0
11 11 22 22 33 33 44  0  0
11 11 22 22 33 33 44 44  0
11 11 11 22 22 33 33 44 44

> > Why do you need a delivery format like GIF in memory?
> 
> Did I mention GIF? AFAIK unisys requires every developer who produce gif 
> paying
>  a LZW license fee so that there is no royalty-free gif encoding library. My
> knowledge on LZW may be again outdated, but I think png will be a better
> alternative.

Only 6 days left to expire the last patent 
http://www.gnu.org/philosophy/gif.html

> Nevertheless I need jpeg. Reading jpeg files, decoding them in memory and pipe
> to glpixels for display.

But that's what image3 is supposed to do: read the format from file
and return an array in memory.

> -- 
> regards,
> bill


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to