Can't you just use the GTK versions? Qt implements the IDE but there's
nothing in the language tied to this. For example, I can do this in my
jconsole running under emacs, which knows nothing about any image libraries:
load '~addons/gui/gtk/gtk.ijs'
$picfls=. {."1 dir '*.jpg' NB. How many .JPGs in this dir?
170
3{.picfls NB. What are some of their names?
+------------------+----------------------+------------------------+
|1-charredmicro.jpg|130302125400-large.jpg|4-3-2-1-anotherlinkb.jpg|
+------------------+----------------------+------------------------+
$img=. readimg_jgtk_ '1-charredmicro.jpg' NB. What is size of this
image?
466 500
5 5{.img NB.
The 3 planes are squooshed together
15132390 12698049 13882323 13750737 13948116
12961221 10263708 11053224 10263708 9605778
13092807 10329501 11184810 10461087 9868950
12763842 9539985 10263708 10000536 9737364
13553358 10000536 11053224 12303291 13553358
$img=. (3$256)#:img NB. Treat as RGB
planes
466 500 3
On Tue, Aug 6, 2013 at 4:51 PM, Dan Farmer <[email protected]> wrote:
> Hello,
>
> New J user here (well I've been dabbling for a few months, but getting
> more serious now). I'm using J8 (which I realize is considered beta, I
> figured since I'm using it on Linux, Windows and Android I may as well
> use the latest, I won't even know what's missing versus J6).
>
> Anyway to come to the point, I found a post on the jwiki about image
> processing and the author used the GTK facilities from J7 to load
> images, I'm curious if this functionality has been exposed via jqt? I
> saw the wd demo that loads an image and displays it on a form, but it
> wasn't clear to me if I could actually get an array out of that or if
> it just returned a QImage for GUI usage. I've seen references to
> image3 and platimg but neither of these seem to be available for J8 at
> this time.
>
> I have a few other questions, but since this is my first post I
> thought I would ask if this group prefers a separate email per "topic"
> (more google-able) or if a batch of questions is ok (more humane on
> the inbox)?
>
> [I tried posting this from Nabble initially and it said the mailing
> list did not accept it so I am resending it in the usual fashion,
> apologies if anyone has seen this twice now]
>
> Thank you,
> Dan
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm