Regarding both proposals for stretching and formats, I think it would complicate things both for J implementation and for users, while introducing artificial limits.
Stretch (in GDI terms) is a very primitive and outdated operation. Nowadays, to say stretch is to say too little, because there are many other factors like smoothing or dithering method, what operation you want with the replaced image (XOR, masked etc.), compositing issues like transparency, etc. And it's better done in the code, where you have full control. Formats is too specialized area, which is best handled by a separate format-reading library. The same is in other graphics systems like GDI+ and Java: you create a bitmap (loading from a format possibly), then the bitmat is always a rectangle of pixels, and only bitmap is applied to the screen. To make it easier to use in the code a wrapper code can be created with simple interface, like you suggest. But it's important to maintain separation of responsibilities between the gl2 engine and the external stuff. ----- Original Message ---- From: bill lam <[EMAIL PROTECTED]> To: Beta forum <[email protected]> Sent: Thursday, August 3, 2006 11:26:17 AM Subject: [Jbeta] glpixelsx glpixelsx apart from the suggest feature for glpixels, will it be possible to make include filter for decoding common picture format such as bmp and jpg such as glpixelsx x y w h 1 pjpg; say 0=bmp 1=jpg 2=png pjpg point to the address of content of a jpg file, scaling also be done to make it w by h. -- regards, bill --- bill lam <[EMAIL PROTECTED]> wrote: > The gl2 cmd for display picture > glpixels x y w h pixeldata; > > Could it be extended to > glpixels x y w h w0 h0 pixeldata; > > where w0, h0 are original width, height of pixeldata. and wd driver scale the > size to w h when rendering in isigraph. > > This make display picture easier and the driver may take advantage of > StretcgBlt > so that scaling be much faster than manipulating pixeldata using J code. > > -- > 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
