[Resolved] Point(x,y) with Start/Stop Drawing

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

[Resolved] Point(x,y) with Start/Stop Drawing

Post by IdeasVacuum »

Would it be possible to have iColour.i = Point(x,y) work without Start/Stop Drawing?
Last edited by IdeasVacuum on Wed Sep 11, 2013 3:04 am, edited 1 time in total.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Point(x,y) with Start/Stop Drawing

Post by STARGÅTE »

Which source should point use then?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Point(x,y) with Start/Stop Drawing

Post by IdeasVacuum »

A previously defined Device Context, in a similar way to the API GetPixel() function
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Point(x,y) with Start/Stop Drawing

Post by STARGÅTE »

in PB is Start/StopDrawing the "Device Context".
And if you want to read the pixel from the memory, you can use DrawingBuffer with PeekL().
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Point(x,y) with Start/Stop Drawing

Post by IdeasVacuum »

I know, I was thinking at the time "3 lines instead of 1" but it's too insignificant. :?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply