convert to c# please typedef struct lprintdithers // Dithering state { pappldithert…
- User
convert to c# please typedef struct lprint_dither_s // Dithering state { pappl_dither_t dither; // Dither matrix to use unsigned char *input[4]; // Input lines for dithering (only 3 are needed, 4 makes it easier for ring buffer) unsigned in_width, // Width in pixels in_height, // Height in lines in_left, // Left (starting) pixel in_top, // Top-most pixel in_bottom; // Bottom-most pixel unsigned char in_bpp, // Input bits per pixel (1 or 8) in_white; // Input white pixel value (0 or 255) unsigned char *output, // Output bitmap out_white; // Output white pixel value (0 or 255) unsigned out_width; // Output width in bytes } lprint_dither_t;
- Assistant
Certainly! Here's the equivalent C# code for your C
typedef struct:csharp