UseJPEGImageDecoder() doesn't work
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Passant.
Please try this code (I have allways graphic-errors)...
You only have to put a jpeg ("test.jpg") in the same path.
InitSprite()
InitKeyboard()
UseJPEGImageDecoder()
OpenScreen (800,600,16,"test")
LoadSprite(0,"test.jpg" ,0)
Repeat
ExamineKeyboard()
FlipBuffers()
DisplaySprite(0,100,100)
Until KeyboardPushed(#PB_Key_Escape)
End
Please try this code (I have allways graphic-errors)...
You only have to put a jpeg ("test.jpg") in the same path.
InitSprite()
InitKeyboard()
UseJPEGImageDecoder()
OpenScreen (800,600,16,"test")
LoadSprite(0,"test.jpg" ,0)
Repeat
ExamineKeyboard()
FlipBuffers()
DisplaySprite(0,100,100)
Until KeyboardPushed(#PB_Key_Escape)
End
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tranquil.
Mike
Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
Never thought about that Command. Did you found it in the docs!? Is that an official command?Originally posted by Passant
Please try this code (I have allways graphic-errors)...
You only have to put a jpeg ("test.jpg") in the same path.
InitSprite()
InitKeyboard()
UseJPEGImageDecoder()
OpenScreen (800,600,16,"test")
LoadSprite(0,"test.jpg" ,0)
Repeat
ExamineKeyboard()
FlipBuffers()
DisplaySprite(0,100,100)
Until KeyboardPushed(#PB_Key_Escape)
End
Mike
Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by ebs.
Passant,
It doesn't work for me either, but using a bit depth of 32 instead of 16 works.
Eric
Passant,
It doesn't work for me either, but using a bit depth of 32 instead of 16 works.
Eric
Originally posted by Passant
Please try this code (I have allways graphic-errors)...
You only have to put a jpeg ("test.jpg") in the same path.
InitSprite()
InitKeyboard()
UseJPEGImageDecoder()
OpenScreen (800,600,16,"test")
LoadSprite(0,"test.jpg" ,0)
Repeat
ExamineKeyboard()
FlipBuffers()
DisplaySprite(0,100,100)
Until KeyboardPushed(#PB_Key_Escape)
End
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
LJ: nop, the JPEG command works for Image and Sprite and doesn't requiers DX at all. I've fixed the lib for 16bits mode, get it at: http://www.purebasic.com/update/Sprite
Tell me if it works..
Fred - AlphaSND
LJ: nop, the JPEG command works for Image and Sprite and doesn't requiers DX at all. I've fixed the lib for 16bits mode, get it at: http://www.purebasic.com/update/Sprite
Tell me if it works..
Fred - AlphaSND
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm