Skip to main content
judging from question body OP probably meant "rastarization", removed unnecessary sentence, formatting
Source Link

how to fill Software polygon rasterization with transparency using raw image data?

iI have an image with shapes in it (squares and triangles with different colors scattered in the image) and iI have an algorithm that matches the image and extracts the geometry vertices from image raw data (unsigned char*) and the extracted vertices are correct and iI have checked theme there is no doubt about theme.

nowNow that iI have got the vertices of the squares and triangles from the raw image data how. How can iI fill the pixels that lies inside the vertices with transparency so they become deleted shapes.

if anyone can Help .. please do.?

PS: the vertices that i have got are just an array of points and each point has x and y property in it and the raw image data is rgba8888 (32 bit).

how to fill polygon with transparency using raw image data?

i have an image with shapes in it (squares and triangles with different colors scattered in the image) and i have an algorithm that matches the image and extracts the geometry vertices from image raw data (unsigned char*) and the extracted vertices are correct and i have checked theme there is no doubt about theme.

now that i have got the vertices of the squares and triangles from the raw image data how can i fill the pixels that lies inside the vertices with transparency so they become deleted shapes.

if anyone can Help .. please do.

PS: the vertices that i have got are just an array of points and each point has x and y property in it and the raw image data is rgba8888 (32 bit).

Software polygon rasterization with transparency using raw image data

I have an image with shapes in it (squares and triangles with different colors scattered in the image) and I have an algorithm that matches the image and extracts the geometry vertices from image raw data (unsigned char*) and the extracted vertices are correct and I have checked theme there is no doubt about theme.

Now that I have got the vertices of the squares and triangles from the raw image data. How can I fill the pixels that lies inside the vertices with transparency so they become deleted shapes?

PS: the vertices that i have got are just an array of points and each point has x and y property in it and the raw image data is rgba8888 (32 bit).

Source Link
Joseph
  • 191
  • 5

how to fill polygon with transparency using raw image data?

i have an image with shapes in it (squares and triangles with different colors scattered in the image) and i have an algorithm that matches the image and extracts the geometry vertices from image raw data (unsigned char*) and the extracted vertices are correct and i have checked theme there is no doubt about theme.

now that i have got the vertices of the squares and triangles from the raw image data how can i fill the pixels that lies inside the vertices with transparency so they become deleted shapes.

if anyone can Help .. please do.

PS: the vertices that i have got are just an array of points and each point has x and y property in it and the raw image data is rgba8888 (32 bit).