Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General pointer to start
#4
Hi ,
So your question is to find a square region, when the middle is known (and the number of pixels in a row is not even.)
Top left is 0,0, (2 - 2 = 0)
Bottom right must be 4,4. (2 + 2 =4)
2 nested loops will find every pixel in the area.
If you are talking about a selection in a large bitmap, then we do not have enough data.
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
General pointer to start - by data4speed - Jun-30-2020, 06:09 AM
RE: General pointer to start - by DPaul - Jun-30-2020, 06:46 AM
RE: General pointer to start - by data4speed - Jul-01-2020, 12:25 AM
RE: General pointer to start - by DPaul - Jul-01-2020, 06:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pointer in the right direction? Viking 5 2,748 Apr-22-2020, 06:14 PM
Last Post: Viking
  VM address (C pointer) of Python object Skaperen 1 2,059 Apr-21-2019, 10:57 PM
Last Post: hshivaraj
  trace invalid pointer simon149 7 5,116 Apr-16-2019, 07:05 AM
Last Post: simon149
  What's the difference b/w assigning start=None and start=" " Madara 1 2,329 Aug-06-2018, 08:23 AM
Last Post: buran
  How to use python to receive Gobject.pointer stephenwei 0 2,574 Oct-30-2017, 04:56 PM
Last Post: stephenwei

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020