[erlang-questions] ex11 ePutImage
Sten Kvamme
sten@REDACTED
Wed Apr 23 16:58:07 CEST 2008
Hi,
It's a bad habit to answer mail from self() but I have solved the
ePutImage problem, so you can stop look for old example code now ;-)
I simply implemented a getimage function and got a ZPixmap to study.
I have never been happier looking at joe smiling from his portrait.
Thanks,
Sten
On Apr 22, 2008, at 20:56 , Sten Kvamme wrote:
> Hi,
>
> I can't get this ePutImage to put any image on screen. When I think I
> have all parameters right I get: {error,6291463,14,{length,
> 72,0,<<>>}} from the X server.
>
> I am using:
> {ok,{Wbin,Hbin,Data}} = ex11_lib_read_jpeg:file("joe.jpg"),
> xDo(Pid, ePutImage(Win, GC, Wbin, Hbin, 1, 1, 0, 24, list_to_binary
> (Data))),
>
> BR,
> Sten
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list