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
Point and Plot
Re: Point and Plot
Copy the pixels/colors in a temporary buffer.neotoma wrote:But how to copy the Pixel from one image to the other ?
If you use Plot() and Pixel() you are on the wrong road anyway,
this commands are too slow for what you want to do.
What way ?
@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
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
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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )