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); }
public GRAPHICS video_write_setting(VIDEO_INPUT input, DRV_COL_SYS col_sys, IntPtr framebuff, uint fb_stride, DRV_VIDEO_FORMAT video_format, DRV_WR_RD wr_rd_swa, ushort video_write_buff_vw, ushort video_write_buff_hw, DRV_VIDEO_ADC_VINSEL video_adc_vinsel) { return(graphics.VideoWriteSetting(input, col_sys, framebuff, fb_stride, video_format, wr_rd_swa, video_write_buff_vw, video_write_buff_hw, video_adc_vinsel)); }
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)); }
internal GRAPHICS VideoWriteSetting(VIDEO_INPUT input, DRV_COL_SYS col_sys, IntPtr framebuff, uint fb_stride, DRV_VIDEO_FORMAT video_format, DRV_WR_RD wr_rd_swa, ushort video_write_buff_vw, ushort video_write_buff_hw, DRV_VIDEO_ADC_VINSEL video_adc_vinsel) { this.framebuff = framebuff; return(GRAPHICS.OK); }
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)); }