Now here's my code :)
pic$="E:\test.mpo"
fsize=FileSize(pic$)
If fsize<100
error$="no picfile"
Goto errortrap
EndIf
*mpostart=AllocateMemory(fsize)
If *mpostart=0
error$="couldn't allocate memory"
Goto errortrap
EndIf
ok=ReadFile(1,pic$)
If ok=0
error$="couldn't read picdata ...
Search found 23 matches
- Mon Oct 13, 2014 9:37 am
- Forum: Coding Questions
- Topic: extracting mpo-files
- Replies: 7
- Views: 4352
- Sun Oct 12, 2014 8:29 pm
- Forum: Coding Questions
- Topic: extracting mpo-files
- Replies: 7
- Views: 4352
Re: extracting mpo-files
Thade, I love this approach! Just searching for the "Exif"s should do the job.Thade wrote:I used this Blitz3D Code years ago to split MPO Files made with my Fuji W3 in a Blitz3D Anaglyph program
Not professional, but it worked ...
I think, that's all I need

- Sun Oct 12, 2014 10:45 am
- Forum: Coding Questions
- Topic: extracting mpo-files
- Replies: 7
- Views: 4352
extracting mpo-files
mpo is an extended version of JPG to save multiple images in one file, for example for 3D Fotos
Would it be possible to extend the UseJPEGImageDecoder() for loading these additional images with
loadimage(1,mpofile$,#picindex)
?
I posted this as a feature request some time ago.
But it would be ...
Would it be possible to extend the UseJPEGImageDecoder() for loading these additional images with
loadimage(1,mpofile$,#picindex)
?
I posted this as a feature request some time ago.
But it would be ...
- Tue Sep 02, 2014 11:55 am
- Forum: Coding Questions
- Topic: address of point?
- Replies: 12
- Views: 4148
Re: address of point?
Things are getting clearer now :)
I haven't tried the point() with PB5 because converting my old large 3.9 source would take some time to convert to the newer PB conventions .
But it's good news to know, point is working now noticeable faster!
I already have tested the grabimage method before ...
I haven't tried the point() with PB5 because converting my old large 3.9 source would take some time to convert to the newer PB conventions .
But it's good news to know, point is working now noticeable faster!
I already have tested the grabimage method before ...
- Mon Sep 01, 2014 7:34 pm
- Forum: Coding Questions
- Topic: address of point?
- Replies: 12
- Views: 4148
Re: address of point?
Thank you luis and infratec!
My idea was to copy some single lines of an image with copymemory instead of checking single points and drawing them with plot, which is extremely slow. But the thing seems much more complicate than I thought.
So my idea of getting an address and copying a number of ...
My idea was to copy some single lines of an image with copymemory instead of checking single points and drawing them with plot, which is extremely slow. But the thing seems much more complicate than I thought.
So my idea of getting an address and copying a number of ...
- Mon Sep 01, 2014 11:24 am
- Forum: Coding Questions
- Topic: address of point?
- Replies: 12
- Views: 4148
address of point?
Is there something like
getaddressofpoint(#image,x,y) ?
It would be very helpful.
getaddressofpoint(#image,x,y) ?
It would be very helpful.
- Mon Jul 21, 2014 10:19 am
- Forum: Coding Questions
- Topic: How to have zero detection on VirusTotal...?
- Replies: 16
- Views: 9652
Re: How to have zero detection on VirusTotal...?
That's right.eesau wrote: It really is annoying how often for example my Avast detects PB executables as positive...
The wierdest Avast warning I ever came across:
only 1 line of code
Code: Select all
Debug Str(#PB_Ignore)

(code not saved, just started with F5)
- Mon Jul 21, 2014 9:51 am
- Forum: The PureBasic Editor
- Topic: End of code message with 2 Desktops
- Replies: 0
- Views: 2280
End of code message with 2 Desktops
The search function drops a message box, when the end of code is reached to ask, whether to restart the search at the beginning.
The problem is: I have 2 desktops and when the debugger window is partly out of the main desktop (where the PB editor is) then the message is shown on the 2nd desktop ...
The problem is: I have 2 desktops and when the debugger window is partly out of the main desktop (where the PB editor is) then the message is shown on the 2nd desktop ...
- Mon Jul 21, 2014 12:00 am
- Forum: Feature Requests and Wishlists
- Topic: Finding related If EndIf / Repeat Until etc. by keypress
- Replies: 4
- Views: 1498
Re: Finding related If EndIf / Repeat Until etc. by keypress
@freak wow, that's exactly, what I was looking for! Thanks a lot!
- Sun Jul 20, 2014 9:29 pm
- Forum: Feature Requests and Wishlists
- Topic: Finding related If EndIf / Repeat Until etc. by keypress
- Replies: 4
- Views: 1498
Finding related If EndIf / Repeat Until etc. by keypress
Would be a nice feature to just press Ctrl Pageup, when the cursor is in a Endif-line to get to the related If-line. My If/Endifs are often quite far away (many hundred lines), so it's often very frustrating finding them. And yes, I do the indents very carefully, but if only one if or endif is at ...
- Wed Jul 09, 2014 11:47 am
- Forum: Feature Requests and Wishlists
- Topic: mpo-Files
- Replies: 0
- Views: 1144
mpo-Files
mpo is an extended version of JPG to save multiple images in one file, for example for 3D Fotos
Would it be possible to extend the UseJPEGImageDecoder() for loading these additional images with
loadimage(1,mpofile$,#picindex)
?
Would it be possible to extend the UseJPEGImageDecoder() for loading these additional images with
loadimage(1,mpofile$,#picindex)
?
- Thu Aug 18, 2005 3:08 pm
- Forum: Coding Questions
- Topic: How to find out, which of the gadgets is activated?
- Replies: 8
- Views: 2203
and I had an error
if gadgetid(x) =...
- Thu Aug 18, 2005 3:05 pm
- Forum: Coding Questions
- Topic: How to find out, which of the gadgets is activated?
- Replies: 8
- Views: 2203
@ Fred
You were first
)
Thanks

Thanks

- Thu Aug 18, 2005 3:03 pm
- Forum: Coding Questions
- Topic: How to find out, which of the gadgets is activated?
- Replies: 8
- Views: 2203
Simple solution
I found out a simple solution for myself *g*
to test, if gadget(x) is activated, I now use the following lines
to test, if gadget(x) is activated, I now use the following lines
thefocusishere=getfocus_()
if gadgetid(gadget(x)) = thefocusishere
; gadget(x) has the focus!
endif
- Thu Aug 18, 2005 11:14 am
- Forum: Coding Questions
- Topic: How to find out, which of the gadgets is activated?
- Replies: 8
- Views: 2203
How to find out, which of the gadgets is activated?
I need to know, which one of several gadgets is activated.
Setting the focus to a gadget is easy with activategadget(#),
but I didn't find a function, to GET the number of the active gadget (which could have changed since the last activategadget)
Setting the focus to a gadget is easy with activategadget(#),
but I didn't find a function, to GET the number of the active gadget (which could have changed since the last activategadget)