Pixel sampler

New releases and general discussions.

Post » Tue Nov 23, 2010 8:37 pm

Ashley you havent understood what i wrote or i have formed my though not clearly.

my idea is to not detect a singel pixel but a grid box , and each bos is made by many pixels

for example: a window with resolution of 100 x 100 pixels would have 16 grid box (25/25 pix each)
like with tiles where you can set the tile width and heigh.
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097

Post » Tue Nov 23, 2010 8:54 pm

I'm not sure I understand. How does that improve performance?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,590

Post » Tue Nov 23, 2010 10:11 pm

[quote="irbis":1pno5j1f]my idea is to not detect a singel pixel but a grid box , and each bos is made by many pixels

for example: a window with resolution of 100 x 100 pixels would have 16 grid box (25/25 pix each)
like with tiles where you can set the tile width and heigh.[/quote:1pno5j1f]

Grid box or not, you're transferring pixels. Just the act of looking up one pixel creates the slowdown.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Nov 23, 2010 10:17 pm

I don't think you can get anything other than a single pixel. Even if you could detect a quadrant, what if there's more than one color within that group?
You would need some sort of algorithm to get a mean, and that would undoubtedly slow it down even more.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Previous

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests