It is currently Fri Jan 22, 2021 5:08 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject:
PostPosted: Thu Jan 24, 2002 5:52 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Jan 25, 2002 10:04 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Franco.

Little update for whom is interested:
Quote:
... to magnify the image. How is this possible with PureBasic?

this is finished and works fine with WinAPI.
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.

Quote:
With an old version of another basic language I need only 2 commands for it! No API calls!

I don't like to look back a lot of years and to say: "It was so easy with..."

Conclusion:
More commands needed!


Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Jan 26, 2002 6:43 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 28, 2002 5:08 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Franco.

Quote:
Don't expect overnight miracles -- it's not easy writing a programming
language while also trying to please everyone. Go easy on him.

You have totally right
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 28, 2002 10:52 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by DarkUni.

As long as PNG makes it in, I'm good.

I'd like to see some 'image strip' type support vice using CLIPSPRITE. At least it can be worked around.

Shane R. Monroe
Dark Unicorn Productions


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 28, 2002 11:17 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by mystik.

PNG, you will be asking for OpenGL and mac support next

only joking :)

Steve.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 28, 2002 11:34 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Pupil.

Quote:
PNG, you will be asking for OpenGL and mac support next

only joking :)

Steve.


Actually you can find a small openGL demo on the http://www.reelmediaproductions.com/pb/ that is made in PureBasic..


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 28, 2002 11:44 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by DarkUni.

Inside Blitz Basic joke ...

One of the reasons probably many of us are here.

Shane R. Monroe
Dark Unicorn Productions


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 28, 2002 11:57 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Pupil.

Quote:
Inside Blitz Basic joke ...

One of the reasons probably many of us are here.

Shane R. Monroe
Dark Unicorn Productions

Oh, my bad then, didn't quite catch on :wink:


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye