Ejemplo n.º 1
0
        internal GRAPHICS ReadSetting(IntPtr framebuff, uint fb_stride, DRV_GRAPHICS_FORMAT gr_format, DRV_WR_RD wr_rd_swa, ref drv_rect_t gr_rect, byte[] clut, int clut_count)
        {
            this.framebuff = framebuff;
            this.fb_stride = fb_stride;
            this.gr_format = gr_format;
            this.wr_rd_swa = wr_rd_swa;
            this.gr_rect   = gr_rect;
            this.clut      = clut;

            bitmap = new Bitmap(gr_rect.hw - gr_rect.hs, gr_rect.vw - gr_rect.vs, PixelFormat.Format32bppArgb);
            using (var canvas = System.Drawing.Graphics.FromImage(bitmap)) {
                canvas.Clear(Color.FromArgb(255, Color.White));
            }

            return(GRAPHICS.OK);
        }
Ejemplo n.º 2
0
 public GRAPHICS graphics_read_setting(DRV_GRAPHICS layer, IntPtr framebuff,
                                       uint fb_stride, DRV_GRAPHICS_FORMAT gr_format, DRV_WR_RD wr_rd_swa,
                                       ref drv_rect_t gr_rect, byte[] clut, int clut_count)
 {
     return(graphics.ReadSetting(layer, framebuff, fb_stride, gr_format, wr_rd_swa, ref gr_rect, clut, clut_count));
 }
Ejemplo n.º 3
0
 internal GRAPHICS ReadSetting(DRV_GRAPHICS layer, IntPtr framebuff, uint fb_stride, DRV_GRAPHICS_FORMAT gr_format, DRV_WR_RD wr_rd_swa, ref drv_rect_t gr_rect, byte[] clut, int clut_count)
 {
     return(layers[(int)layer].ReadSetting(framebuff, fb_stride, gr_format, wr_rd_swa, ref gr_rect, clut, clut_count));
 }