Vlad i Slav

1

votes
1

answer
38

views

Update list values after update root class object

I have the following classes: public class Class_A { public string my_field { get; set; } public int id { get; set; } // etc... } public class Class_B { public string my_field { get; set; } public Class_A field_A { get; set; } // etc... } public class Class_C { public string my_field { get; set; }...
Vlad i Slav
0

votes
0

answer
13

views

EmguCV read 8 bit image from byte array

I have a byte array which contains the data of PNG8 (Color palette and indexes of colors). I need to create Image (or at least simply Bitmap) from my byte array. I haven't problems with PNG24 or PNG32: byte type; int height, width; byte[] data; ... // Initializing type, height, width and data with B...
Vlad i Slav
3

votes
1

answer
81

views

Indexed 8bpp image and array of pixels without GetPixel

I need to get index of every pixel of my Bitmap in color palette (I have an indexed 8bpp image). Now I use the following way: List data = new List(); // indexes List pixels = bitmap.Palette.Entries.ToList(); // palette for (int i = 0; i
Vlad i Slav