Missing commands and functions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
darklordz
Enthusiast
Enthusiast
Posts: 119
Joined: Wed May 21, 2003 1:44 pm
Location: Netherlands
Contact:

Post by darklordz »

Force Feedback!!!!!
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Post by LCD »

Pardon? I do not use any force feedback devices... :)
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Post by LCD »

Fred wrote:
LCD wrote:Another question: Is there a way to make memory block from image (not loading image from disc, but taking existing image to read it out with PEEK, modify it with POKE, and then put it back on screen. This should be faster than PLOT())?
You have the ultimate solution in PB: the pointers. Ok, there is some good tutorial on this forums made by 'freak' so you can launch a search for further explanation.
Until now it looks like this method works only in screen or windowed screen mode, and not in window mode, or I haven´t spoted the correct way to use it, so on my wish list is:
GrabImageBlock(WindowID,x in actual window,y in actual window,width,height, memoryBlock)
CatchImage() is then the opposite way, to restore image from memory block.
Are there any plans for ImagePlugin() for loading IFF files on PC?
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

More than plans:

http://www.terra.es/personal5/temporald ... ePluginIFF

Usage:

* UseEC_IFFImageDecoder()

Add this like any other image plugin at the beginning of your code. Decodes regular IFF, HAM(5-10), PBM, IFF24/32, EHB. If you find any IFF file that it can't decode properly, please send it to me.

* UseEC_ILBMImageEncoder()

Add this like the previous one, but for encoding. At this moment, it only encodes in IFF24.

To use it, type 'ILBM' as format. The encoder will use RLE only if it results in a smaller file size:

Code: Select all

SaveImage(0, "myIFFfile", 'ILBM') ; note the single quotes around ILBM
Yet a beta, I hope you find it useful. Bye,
El_Choni
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Post by LCD »

Great! I did not knew about it... Thank you very much, I started already to write a importer.
Edit: My dude reported me that the IFF decoder does not decode the HAM (From Amiga500) images correctly.
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Post by LCD »

El_Choni wrote:More than plans:

http://www.terra.es/personal5/temporald ... ePluginIFF

Usage:

* UseEC_IFFImageDecoder()

Add this like any other image plugin at the beginning of your code. Decodes regular IFF, HAM(5-10), PBM, IFF24/32, EHB. If you find any IFF file that it can't decode properly, please send it to me.

* UseEC_ILBMImageEncoder()

Add this like the previous one, but for encoding. At this moment, it only encodes in IFF24.

To use it, type 'ILBM' as format. The encoder will use RLE only if it results in a smaller file size:

Code: Select all

SaveImage(0, "myIFFfile", 'ILBM') ; note the single quotes around ILBM
Yet a beta, I hope you find it useful. Bye,
You haven´t entered your E-Mail adress, so I can´t send you the IFF that does not decode correctly.
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Here it is (doesn't this forum have an e-mail poster?). Of course, the lib doesn't decode sound, font, text or animated IFF (just to remind you ;):

mcalderon_inicia.es

UPDATE: anything new about these HAM files? Haven't received them yet.
El_Choni
Post Reply