Posts

Showing posts with the label bitmapimage

How to find image border via bitmap in c#?

Image
How to find image border via bitmap in c#? i want to image border via bitmap but some pixel remaining in draw border how can i cover all border pixel in image? Datatable Data GetImageDataId PixelName PixelA PixelR PixelG PixelB PixelXCordinate PixelYCordinate 1 ffbcbcbc 255 188 188 188 0 0 2 ffb5b5b5 255 181 181 181 0 1 3 ffb7b7b7 255 183 183 183 0 2 4 ffb7b7b7 255 183 183 183 0 3 5 ffb7b7b7 255 183 183 183 0 4 Code if (dt1.Rows.Count > 0) { int p = 2; progressBar1.Visible = true; for (int r = dt1.Rows.Count - 1; r >= 1; r--) { if (dt1.Rows[r]["PixelName"].ToString() == "ffb7b7b7") { // DataTable dtf = dt1.Select("PixelYCordinate='...