示例#1
0
 protected override void GetMediaFeatures(ref media_features media)
 {
     base.GetMediaFeatures(ref media);
     media.device_width  = media.width;
     media.device_height = media.height;
     media.resolution    = 96;
     media.color         = 24;
     media.type          = media_type.media_type_all;
 }
示例#2
0
 public void get_media_features(media_features media)
 {
     get_client_rect(out var client);
     media.type   = media_type.screen;
     media.width  = client.width;
     media.height = client.height;
     // var screen = Screen.FromControl(this);
     // var screenBounds = screen.Bounds;
     // media.device_width = screenBounds.Width;
     // media.device_height = screenBounds.Height;
     media.color       = 8;
     media.monochrome  = 0;
     media.color_index = 256;
     media.resolution  = 96;
 }
示例#3
0
 public void get_media_features(media_features media)
 {
 }