Restored from previous forum. Originally posted by Andre.
I also vote for built-in JPG support (Image and Gadget libraries)
Regards
André
*** German PureBasic Support ***
[Implemented] JPG Image Display
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
Hi,
@ebs: the problem seemed to be calling UpdateImage() from the window procedure. Moved the code with CallCOM to the #WM_PAINT message processing, and it seemed to be fine, but other problems arised: the image was showed a millisecond, and then turned black, or showed but disappeared when moving the window, to appear again if moved the window offscreen and then in again; I'm a bit lost, I'm new to window procedures. Sorry, I'll keep trying...
Bye,
El_Choni
Hi,
@ebs: the problem seemed to be calling UpdateImage() from the window procedure. Moved the code with CallCOM to the #WM_PAINT message processing, and it seemed to be fine, but other problems arised: the image was showed a millisecond, and then turned black, or showed but disappeared when moving the window, to appear again if moved the window offscreen and then in again; I'm a bit lost, I'm new to window procedures. Sorry, I'll keep trying...
Bye,
El_Choni
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by naw.
Hi, How about PNG support?
Obviously there are issues around GIF licencing so thats out...
PNG I believe doesnt require a licence and offers the transparency of GIFs and the compression of JPG.
(BTW - amazing code example above - wish I understood it
- A suggestion/workaround: I've been using the webgadget to display images like gifs / jpgs, even vrml and pdf files, I know it's not *nice* but well it does work
- from memory try something like:
~~~~~~~~~~~~~~~~~~~~~~~~
procedure writeimage(gid,x,y,w,h,file$)
webgadget(gid,x,y,w,h)
setgadgettext("javascript:document.write('');document.close()")
endprocedure
~~~~~~~~~~~~~~~~~~~~~~~~
Edited by - naw on 05 July 2002 11:04:52
Hi, How about PNG support?
Obviously there are issues around GIF licencing so thats out...
PNG I believe doesnt require a licence and offers the transparency of GIFs and the compression of JPG.
(BTW - amazing code example above - wish I understood it

- A suggestion/workaround: I've been using the webgadget to display images like gifs / jpgs, even vrml and pdf files, I know it's not *nice* but well it does work

- from memory try something like:
~~~~~~~~~~~~~~~~~~~~~~~~
procedure writeimage(gid,x,y,w,h,file$)
webgadget(gid,x,y,w,h)
setgadgettext("javascript:document.write('');document.close()")
endprocedure
~~~~~~~~~~~~~~~~~~~~~~~~
Edited by - naw on 05 July 2002 11:04:52
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm