New Image plugin available for beta-testing
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- Thorsten1867
- Addict
- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Where can I get the plugin for PB 4.00?
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- NoahPhense
- Addict
- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
- Thorsten1867
- Addict
- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
I have some problems with the plugin. So I use wxCmmImgPlugin. PNG doesn't work, but JPG and other formats.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- Dreamland Fantasy
- Enthusiast
- Posts: 335
- Joined: Fri Jun 11, 2004 9:35 pm
- Location: Glasgow, UK
- Contact:
- Dreamland Fantasy
- Enthusiast
- Posts: 335
- Joined: Fri Jun 11, 2004 9:35 pm
- Location: Glasgow, UK
- Contact:
I haven't solved the problem, but I seem to have found a workaround.
It would appear that the order that you call the various encoders and decoders matters. For instance, the following seems to work okay:
Now if I swap the first two lines around it fails:
Strange!
Does anyone else have this problem?
Kind regards,
Francis.
It would appear that the order that you call the various encoders and decoders matters. For instance, the following seems to work okay:
Code: Select all
UseEC_PPMImageDecoder()
UseTGAImageDecoder()
FileName$ = OpenFileRequester("Pick a PPM file", "", "Portable Pixmap File (*.ppm)|*.ppm", 0)
If LoadImage(0, FileName$)
MessageRequester("", "Image loaded successfully")
Else
MessageRequester("", "Failed to load image")
EndIf
Code: Select all
UseTGAImageDecoder()
UseEC_PPMImageDecoder()
FileName$ = OpenFileRequester("Pick a PPM file", "", "Portable Pixmap File (*.ppm)|*.ppm", 0)
If LoadImage(0, FileName$)
MessageRequester("", "Image loaded successfully")
Else
MessageRequester("", "Failed to load image")
EndIf

Does anyone else have this problem?
Kind regards,
Francis.
- Dreamland Fantasy
- Enthusiast
- Posts: 335
- Joined: Fri Jun 11, 2004 9:35 pm
- Location: Glasgow, UK
- Contact:
After a lot of playing around this arrangement seems to work:
Any other arrangement that I've tried ends up with either the 'failure loading image' message with my example code or an 'invalid memory access' debugger error during the LoadImage().
*** Edit: I've discovered that with this arrangement I seem to have an intermittent problem when I load TIFFs. Sometimes it works, sometimes it doesn't.
Kind regards,
Francis.
Code: Select all
UsePNGImageDecoder()
UseEC_PPMImageDecoder()
UseTGAImageDecoder()
UseTIFFImageDecoder()
UseEC_OLEImageDecoder()
UseEC_IFFImageDecoder()
*** Edit: I've discovered that with this arrangement I seem to have an intermittent problem when I load TIFFs. Sometimes it works, sometimes it doesn't.
Kind regards,
Francis.
Works fine here. May be you have'nt the latetest releases from el_choni?
I've put it here for download:
http://www.kram-hochladen.de/download.php?id=NTM5Nzg=
I've put it here for download:
http://www.kram-hochladen.de/download.php?id=NTM5Nzg=
- Dreamland Fantasy
- Enthusiast
- Posts: 335
- Joined: Fri Jun 11, 2004 9:35 pm
- Location: Glasgow, UK
- Contact:
Hi dige,
Those libraries that you posted are different to the ones I have, so maybe I wasn't using the latest versions.
Unfortunately it doesn't cure my problem. I still get the 'failed to load image' message using the following example code, where swapping the first two lines seems to correct it.
I thought that it may have been something to do with me running the x64 version of Windows XP, but I have now tried it on another PC with the 32-bit version of Windows XP and I get the same problem.
Kind regards,
Francis.
Those libraries that you posted are different to the ones I have, so maybe I wasn't using the latest versions.
Unfortunately it doesn't cure my problem. I still get the 'failed to load image' message using the following example code, where swapping the first two lines seems to correct it.
Code: Select all
UseTGAImageDecoder()
UseEC_PPMImageDecoder()
FileName$ = OpenFileRequester("Pick a PPM file", "", "Portable Pixmap File (*.ppm)|*.ppm", 0)
If LoadImage(0, FileName$)
MessageRequester("", "Image loaded successfully")
Else
MessageRequester("", "Failed to load image")
EndIf
Kind regards,
Francis.
dige - can you re-post somewhere? I get an error message at that link (and I can't tell you what it says as I don't speak or read German!).
If anyone else has a link to the latest version of this lib please send it to me!
Thanks!
If anyone else has a link to the latest version of this lib please send it to me!
Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net