Point and Plot

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Point and Plot

Post by neotoma »

A Problem with the usage of Plot() and Point is (also in the most other 2d_Drawing-Functions) is the StartDrawing() and StopDrawing() .
So if i want to copy some pixel from one image to another - ist a pain in the ass. At the moment i tryied to make a faster resize-routine in PureBasic.
But how to copy the Pixel from one image to the other ?
(The Resize-Routine is pretty slow)
My suggestion :
Plot( ImageID, x,y , Color)
Point (ImageID,x,y)

I hope the is possible....

Mike
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Point and Plot

Post by Danilo »

neotoma wrote:But how to copy the Pixel from one image to the other ?
Copy the pixels/colors in a temporary buffer.

If you use Plot() and Pixel() you are on the wrong road anyway,
this commands are too slow for what you want to do.
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

What way ?

Post by neotoma »

@danilo
What is the other way to do this ? Is there another (undocumented) function ?
And how can i copy the images to a temporary buufer ?

Mike
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

plgblt (not on al windows flavours available) is supposed to be faster than bitblt and friends, and resizes on the fly
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply