Restored from previous forum. Originally posted by Franco.
Well I try to create a loupe program (proof of concept...).
The first step: copy an area of the dektop to memory is done with WinAPI.
(no PureBasic command)
But AFAIK the only way to show this image is with an ImageGadget.
That works, but I can't change the Image on this gadget and this is bad, really bad.
(when you move the mouse you get normally a different image...)
With an old version of another basic language I need only 2 commands for it! No API calls!
The next step is to magnify the image. How is this possible with PureBasic?
BTW:
ImageGadget(#Gadget, x, y, Width, Heigth, ImageID)
ImageGadget -> The gadget dimension autofit the image size...
Why is there a Width and Heigth variable when calling this command?
It,s not used anyway.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
More Image/Memory commands needed...
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Little update for whom is interested:
I can display the magnified image on an ImageGadget or on the Window background.
And now the bad thing:
To change the Window background seems to be really slow and it doesn't work allways properly. (moving the mouse and so forth results in new images...)
ImageGadget doesn't allow to change the image.
Conclusion:
More commands needed!
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Little update for whom is interested:
this is finished and works fine with WinAPI.... to magnify the image. How is this possible with PureBasic?
I can display the magnified image on an ImageGadget or on the Window background.
And now the bad thing:
To change the Window background seems to be really slow and it doesn't work allways properly. (moving the mouse and so forth results in new images...)
ImageGadget doesn't allow to change the image.
I don't like to look back a lot of years and to say: "It was so easy with..."With an old version of another basic language I need only 2 commands for it! No API calls!
Conclusion:
More commands needed!
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> I don't like to look back a lot of years and to say: "It was so easy with..."
You must be more patient with PureBasic... it's written only by Fred and takes
time. Don't expect overnight miracles -- it's not easy writing a programming
language while also trying to please everyone. Go easy on him.
PB - Registered PureBasic Coder
> I don't like to look back a lot of years and to say: "It was so easy with..."
You must be more patient with PureBasic... it's written only by Fred and takes
time. Don't expect overnight miracles -- it's not easy writing a programming
language while also trying to please everyone. Go easy on him.
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Don't want to discourage anyone, sorry Fred... take it easy!
Just downloaded 2v9 and I will take a look at it, thanks Fred.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
You have totally rightDon't expect overnight miracles -- it's not easy writing a programming
language while also trying to please everyone. Go easy on him.
Don't want to discourage anyone, sorry Fred... take it easy!
Just downloaded 2v9 and I will take a look at it, thanks Fred.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Pupil.
Actually you can find a small openGL demo on the http://www.reelmediaproductions.com/pb/ that is made in PureBasic..PNG, you will be asking for OpenGL and mac support next
only joking
Steve.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm