Click here to Skip to main content
15,899,754 members

Comments by rafallus (Top 2 by date)

rafallus 7-Oct-13 13:40pm View    
Thank you for suggestion, I will see, how LockBits way works.
rafallus 7-Oct-13 12:00pm View    
Currently:

for (int i = 0; i < image_src.Width; i++)
for (int j = 0; j < image_src.Height; j++)
{
image_dest.SetPixel(i, j, image_src.GetPixel(i, j));
}

For now all it does is copying image pixel per pixel. What I intend to do is sth like (in pseudocode):

foreach(pixel in pie_slice_region)
image_dest.SetPixel(pixel.X, pixel.Y, image_src.GetPixel(pixel.X, pixel.Y));

Then I will need to implement transformations to that region, like rotation and symmetry, to fill rest of the circle with that region.