有谁能截一张新版本qq视频截图按钮的拨号盘新图

彩虹糖1100
主题帖子积分
彩虹糖:1100
你会自由截屏吗,不会的看,不需要下拉通知栏直接编辑截图
&查看:3959
最新的系统有新的自由截屏,截屏后不需要下拉通知栏直接进行图片编辑修剪,
temp_upload_img.jpg (51.41 KB, 下载次数: 4)
23:35 上传
temp_upload_img4058.jpg (35.74 KB, 下载次数: 4)
23:35 上传
temp_upload_img9904.jpg (46.74 KB, 下载次数: 4)
23:35 上传
手抖,截不标准,见谅!
方法:先在拨号盘输入*#808#,然后滑到最底部把自由截屏路径打勾,然后退出就行了!find7本身可以三指截屏和同时按住关机键和音量减键截屏,自由截屏路径打开之后是同时按住关机键和音量加键,记住,是加音量的按键!文笔不行,见谅
主题帖子积分
彩虹糖:980
来自OPPO Find 7手机
好帖!我早就看到了这个功能就是不知道效果!
主题帖子积分
没有找到有自由截屏路径该选项?
彩虹糖1100
主题帖子积分
彩虹糖:1100
没有找到有自由截屏路径该选项?
必须是最新的公测版的系统才行,也就是最近2周的公测才具备
金钱161800
主题帖子积分
20年专业O黑~~~~~~~~~~
彩虹糖:462
彩虹糖3102
金钱157954
主题帖子积分
Dear偏执狂丶
彩虹糖:3102
很棒哦支持
主题帖子积分
努力努力努力努力
主题帖子积分
彩虹糖:122
。。。。。。。。
特殊活动勋章,不再开启兑换
论坛总积分大于50000分,可以通过审核
申请条件:截图微信关注ColorOS账号,并私信发图片给管理sakura
申请条件:截图微博关注ColorOS账号,并私信发图片给管理sakurausing Susing System.Dusing System.Drawing.Iusing System.Drawing.Drawing2D;using System.IO;
namespace Framework{public class ImageClass{&&&&&&& public Image ResourceI&&&&&&& public int Width=0;&&&&&&& public int Height=0;&&&&&&& private int ImageW&&&&&&& private int ImageH&&&&&&& private ImageFormat imgF&&&&&&& public string ErrM
&&&&&&& public ImageClass(string ImageFileName)&&&&&&& {&&&&&&&&&&& ResourceImage = Image.FromFile(ImageFileName);&&&&&&&&&&& Width = ResourceImage.W&&&&&&&&&&& Height = ResourceImage.H&&&&&&&&&&& imgFormat = ResourceImage.RawF&&&&&&&&&&& ErrMessage = "";&&&&&&& }&&&&&&& public ImageClass(byte[] Img)&&&&&&& {&&&&&&&&&&& MemoryStream imgStream = new MemoryStream(Img);&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& ResourceImage = System.Drawing.Image.FromStream(imgStream);&&&&&&&&&&&&&&& Width = ResourceImage.W&&&&&&&&&&&&&&& Height = ResourceImage.H&&&&&&&&&&&&&&& imgFormat = ResourceImage.RawF&&&&&&&&&&& }&&&&&&&&&&& catch (Exception ex)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = ex.ToString();&&&&&&&&&&& }&&&&&&& }
&&&&&&& public bool ThumbnailCallback()&&&&&&& {&&&&&&&&&&&&&&&&&& }
&&&&&&& public Image GetReducedImage(int Width, int Height)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& Image ReducedI
&&&&&&&&&&&&&&& Image.GetThumbnailImageAbort callb = new Image.GetThumbnailImageAbort(ThumbnailCallback);
&&&&&&&&&&&&&&& ReducedImage = ResourceImage.GetThumbnailImage(Width, Height, callb, IntPtr.Zero);
&&&&&&&&&&&&&&& return ReducedI&&&&&&&&&&& }&&&&&&&&&&& catch (Exception e)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = e.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&& }&&&&&&& public bool GetReducedImage(int Width, int Height, string targetFilePath)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& EncoderP&&&&&&&&&&&&&&& EncoderP
&&&&&&&&&&&&&&& ps = new EncoderParameters(1);
&&&&&&&&&&&&&&& p = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 85L);&&&&&&&&&&&&&&& ps.Param[0] =
&&&&&&&&&&&&&&& Image ReducedI
&&&&&&&&&&&&&&& Image.GetThumbnailImageAbort callb = new Image.GetThumbnailImageAbort(ThumbnailCallback);
&&&&&&&&&&&&&&& ReducedImage = ResourceImage.GetThumbnailImage(Width, Height, callb, IntPtr.Zero);
&&&&&&&&&&&&&&& Graphics g = System.Drawing.Graphics.FromImage(ReducedImage);&&&&&&&&&&&&&&& // 设置画布的描绘质量&&&&&&&&&&&&&&& g.CompositingQuality = CompositingQuality.HighQ&&&&&&&&&&&&&&& g.SmoothingMode = SmoothingMode.HighQ&&&&&&&&&&&&&&& g.InterpolationMode = InterpolationMode.HighQualityB
&&&&&&&&&&&&&&& //清空画布并以透明背景色填充&&&&&&&&&&&&&&& g.Clear(Color.Transparent);
&&&&&&&&&&&&&&& g.DrawImage(ResourceImage, new Rectangle(0, 0, Width, Height), new Rectangle(0, 0, ResourceImage.Width, ResourceImage.Height), GraphicsUnit.Pixel);
&&&&&&&&&&&&&&& ImageCodecInfo imgCodecInfo = GetCodecInfo(imgFormat.ToString());
&&&&&&&&&&&&&&& if (imgCodecInfo == null)&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, imgFormat);&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& else&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, GetCodecInfo(targetFilePath), ps);&&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&& ReducedImage.Dispose();&&&&&&&&&&&&&&& g.Dispose();
&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&&&&&& catch (Exception e)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = e.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&& }
&&&&&&& public Image GetReducedImage(double Percent)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& Image ReducedI
&&&&&&&&&&&&&&& Image.GetThumbnailImageAbort callb = new Image.GetThumbnailImageAbort(ThumbnailCallback);
&&&&&&&&&&&&&&& ImageWidth = Convert.ToInt32(ResourceImage.Width * Percent);&&&&&&&&&&&&&&& ImageHeight = Convert.ToInt32(ResourceImage.Height * Percent);
&&&&&&&&&&&&&&& ReducedImage = ResourceImage.GetThumbnailImage(ImageWidth, ImageHeight, callb, IntPtr.Zero);
&&&&&&&&&&&&&&& return ReducedI&&&&&&&&&&& }&&&&&&&&&&& catch (Exception e)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = e.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&& }
&&&&&&& public bool GetReducedImage(double Percent, string targetFilePath)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& EncoderP&&&&&&&&&&&&&&& EncoderP
&&&&&&&&&&&&&&& ps = new EncoderParameters(1);
&&&&&&&&&&&&&&& p = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 85L);&&&&&&&&&&&&&&& ps.Param[0] =&&&&&&&&&&&&&&& Image ReducedI
&&&&&&&&&&&&&&& Image.GetThumbnailImageAbort callb = new Image.GetThumbnailImageAbort(ThumbnailCallback);
&&&&&&&&&&&&&&& ImageWidth = Convert.ToInt32(ResourceImage.Width * Percent);&&&&&&&&&&&&&&& ImageHeight = Convert.ToInt32(ResourceImage.Height * Percent);
&&&&&&&&&&&&&&& ReducedImage = ResourceImage.GetThumbnailImage(ImageWidth, ImageHeight, callb, IntPtr.Zero);
&&&&&&&&&&&&&&& Graphics g = System.Drawing.Graphics.FromImage(ReducedImage);
&&&&&&&&&&&&&&& // 设置画布的描绘质量&&&&&&&&&&&&&&& g.CompositingQuality = CompositingQuality.HighQ&&&&&&&&&&&&&&& g.SmoothingMode = SmoothingMode.HighQ&&&&&&&&&&&&&&& g.InterpolationMode = InterpolationMode.HighQualityB
&&&&&&&&&&&&&&& //清空画布并以透明背景色填充&&&&&&&&&&&&&&& g.Clear(Color.Transparent);
&&&&&&&&&&&&&&& g.DrawImage(ResourceImage, new Rectangle(0, 0, ImageWidth, ImageHeight), new Rectangle(0, 0, ResourceImage.Width, ResourceImage.Height), GraphicsUnit.Pixel);
&&&&&&&&&&&&&&& ImageCodecInfo imgCodecInfo = GetCodecInfo(imgFormat.ToString());
&&&&&&&&&&&&&&& if (imgCodecInfo == null)&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, imgFormat);&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& else&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, GetCodecInfo(targetFilePath), ps);&&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&& ReducedImage.Dispose();&&&&&&&&&&&&&&& g.Dispose();
&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&&&&&& catch (Exception e)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = e.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&& }
&&&&&&& public bool GetReducedImage(string targetFilePath)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& ResourceImage.Save(targetFilePath, ImageHelper.GetFormat(targetFilePath));
&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&&&&&& catch (Exception e)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = e.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&& }&&&&&&& public bool CaptureImg(string targetFilePath, int width, int height, int spaceX, int spaceY)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& //载入底图&& &&&&&&&&&&&&&&& int x = 0;&& //截取X坐标&& &&&&&&&&&&&&&&& int y = 0;&& //截取Y坐标&& &&&&&&&&&&&&&&& //原图宽与生成图片宽&& 之差&&&&&& &&&&&&&&&&&&&&& //当小于0(即原图宽小于要生成的图)时,新图宽度为较小者&& 即原图宽度&& X坐标则为0&&&& &&&&&&&&&&&&&&& //当大于0(即原图宽大于要生成的图)时,新图宽度为设置值&& 即width&&&&&&&& X坐标则为&& sX与spaceX之间较小者&& &&&&&&&&&&&&&&& //Y方向同理&& &&&&&&&&&&&&&&& int sX = ResourceImage.Width -&&&&&&&&&&&&&&& int sY = ResourceImage.Height -&&&&&&&&&&&&&&& if (sX & 0)&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& x = sX & spaceX ? spaceX : sX;&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& else&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& width = ResourceImage.W&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& if (sY & 0)&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& y = sY & spaceY ? spaceY : sY;&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& else&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& height = ResourceImage.H&&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&& EncoderP&&&&&&&&&&&&&&& EncoderP
&&&&&&&&&&&&&&& ps = new EncoderParameters(1);&&&&&&&&&&&&&&& p = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 85L);&&&&&&&&&&&&&&& ps.Param[0] =
&&&&&&&&&&&&&&& Bitmap ReducedImage = new Bitmap(width, height);&&&&&&&&&&&&&&& Graphics g = System.Drawing.Graphics.FromImage(ReducedImage);
&&&&&&&&&&&&&&& // 设置画布的描绘质量&&&&&&&&&&&&&&& g.CompositingQuality = CompositingQuality.HighQ&&&&&&&&&&&&&&& g.SmoothingMode = SmoothingMode.HighQ&&&&&&&&&&&&&&& g.InterpolationMode = InterpolationMode.HighQualityB
&&&&&&&&&&&&&&& //清空画布并以透明背景色填充&&&&&&&&&&&&&&& g.Clear(Color.Transparent);
&&&&&&&&&&&&&&& g.DrawImage(ResourceImage, 0, 0, new Rectangle(x, y, width, height), GraphicsUnit.Pixel);
&&&&&&&&&&&&&&& ImageCodecInfo imgCodecInfo = GetCodecInfo(imgFormat.ToString());
&&&&&&&&&&&&&&& if (imgCodecInfo == null)&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, imgFormat);&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& else&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, GetCodecInfo(targetFilePath), ps);&&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&& //释放资源&& &&&&&&&&&&&&&&& //saveImage.Dispose();&&&&&&&&&&&&&&& ReducedImage.Dispose();&&&&&&&&&&&&&&& g.Dispose();&&&&&&&&&&& }&&&&&&&&&&& catch (Exception ex)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = ex.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&&&&& }
&&&&&&& public bool MergerImg(string targetFilePath, int ImgWidth, int ImgHeight)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& EncoderP&&&&&&&&&&&&&&& EncoderP
&&&&&&&&&&&&&&& ps = new EncoderParameters(1);&&&&&&&&&&&&&&& p = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 85L);&&&&&&&&&&&&&&& ps.Param[0] =
&&&&&&&&&&&&&&& //创建要显示的图片对象,根据参数的个数设置宽度&&&&&&&&&&&&&&& Bitmap ReducedImage = new Bitmap(ImgWidth, ImgHeight);&&&&&&&&&&&&&&& Graphics g = Graphics.FromImage(ReducedImage);
&&&&&&&&&&&&&&& // 设置画布的描绘质量&&&&&&&&&&&&&&& g.CompositingQuality = CompositingQuality.HighQ&&&&&&&&&&&&&&& g.SmoothingMode = SmoothingMode.HighQ&&&&&&&&&&&&&&& g.InterpolationMode = InterpolationMode.HighQualityB
&&&&&&&&&&&&&&& //清空画布并以透明背景色填充&&&&&&&&&&&&&&& g.Clear(Color.Transparent);
&&&&&&&&&&&&&&& int StartX = (ImgWidth - this.Width) / 2;&&&&&&&&&&&&&&& int StartY = (ImgHeight - this.Height) / 2;
&&&&&&&&&&&&&&& g.DrawImage(ResourceImage, StartX, StartY, this.Width, this.Height);
&&&&&&&&&&&&&&& //保存图象&& &&&&&&&&&&&&&&& ImageCodecInfo imgCodecInfo = GetCodecInfo(imgFormat.ToString());&&&&&&&&&&&&&&& if (imgCodecInfo == null)&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, imgFormat);&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& else&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, GetCodecInfo(targetFilePath), ps);&&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&& //释放资源&& &&&&&&&&&&&&&&& ReducedImage.Dispose();&&&&&&&&&&&&&&& g.Dispose();&&&&&&&&&&& }&&&&&&&&&&& catch (Exception ex)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = ex.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&&&&& }
&&&&&&& public bool MergerImg(string targetFilePath, System.Drawing.Image image, int ImgWidth, int ImgHeight)&&&&&&& {&&&&&&&&&&& try&&&&&&&&&&& {&&&&&&&&&&&&&&& EncoderP&&&&&&&&&&&&&&& EncoderP
&&&&&&&&&&&&&&& ps = new EncoderParameters(1);&&&&&&&&&&&&&&& p = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 85L);&&&&&&&&&&&&&&& ps.Param[0] =
&&&&&&&&&&&&&&& //创建要显示的图片对象,根据参数的个数设置宽度&&&&&&&&&&&&&&& Bitmap ReducedImage = new Bitmap(ImgWidth, ImgHeight);&&&&&&&&&&&&&&& Graphics g = Graphics.FromImage(ReducedImage);
&&&&&&&&&&&&&&& // 设置画布的描绘质量&&&&&&&&&&&&&&& g.CompositingQuality = CompositingQuality.HighQ&&&&&&&&&&&&&&& g.SmoothingMode = SmoothingMode.HighQ&&&&&&&&&&&&&&& g.InterpolationMode = InterpolationMode.HighQualityB
&&&&&&&&&&&&&&& //清空画布并以透明背景色填充&&&&&&&&&&&&&&& g.Clear(Color.Transparent);
&&&&&&&&&&&&&&& int StartX = (ImgWidth - image.Width) / 2;&&&&&&&&&&&&&&& int StartY = (ImgHeight - image.Height) / 2;
&&&&&&&&&&&&&&& g.DrawImage(image, StartX, StartY, image.Width, image.Height);&&&&&&&&&&&&&&& //保存图象&& &&&&&&&&&&&&&&& ImageCodecInfo imgCodecInfo = GetCodecInfo(imgFormat.ToString());
&&&&&&&&&&&&&&& if (imgCodecInfo == null)&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, imgFormat);&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&& else&&&&&&&&&&&&&&& {&&&&&&&&&&&&&&&&&&& ReducedImage.Save(targetFilePath, GetCodecInfo(targetFilePath), ps);&&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&& //释放资源&& &&&&&&&&&&&&&&& ReducedImage.Dispose();&&&&&&&&&&&&&&& g.Dispose();&&&&&&&&&&& }&&&&&&&&&&& catch (Exception ex)&&&&&&&&&&& {&&&&&&&&&&&&&&& ErrMessage = ex.M&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&&&&&&&&&&&&& }
&&&&&&& //返回图片解码器信息用于jpg图片&&&&&&& private ImageCodecInfo GetCodecInfo(string str)&&&&&&& {&&&&&&&&&&& string ext = str.Substring(str.LastIndexOf(".") + 1);&&&&&&&&&&& string mimeType = "";&&&&&&&&&&& switch (ext.ToLower())&&&&&&&&&&& {&&&&&&&&&&&&&&& case "jpe":&&&&&&&&&&&&&&& case "jpg":&&&&&&&&&&&&&&& case "jpeg":&&&&&&&&&&&&&&&&&&& mimeType = "image/jpeg";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& case "bmp":&&&&&&&&&&&&&&&&&&& mimeType = "image/bmp";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& case "png":&&&&&&&&&&&&&&&&&&& mimeType = "image/png";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& case "tif":&&&&&&&&&&&&&&& case "tiff":&&&&&&&&&&&&&&&&&&& mimeType = "image/tiff";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& default:&&&&&&&&&&&&&&&&&&& mimeType = "image/jpeg";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& }&&&&&&&&&&& ImageCodecInfo[] CodecInfo = ImageCodecInfo.GetImageEncoders();&&&&&&&&&&& foreach (ImageCodecInfo ici in CodecInfo)&&&&&&&&&&& {&&&&&&&&&&&&&&& if (ici.MimeType == mimeType)&&&&&&&&&&& }&&&&&&&&&&&&&&&&&& }
&&&&&&& public void Dispose()&&&&&&& {&&&&&&&&&&& ResourceImage.Dispose();&&&&&&& }}}
因为tiff格式的图片,一张可以有多页,所以现在有需求如下:
1. 可以随便添加一张图片(tiff,jpeg,png等格式)的图片到指定的tiff图片中去
2. 可以从tiff图片中抽取出任意张图片出来,可以保存为(tiff,png,jpeg等格式)
1&& Image img = Image.FromFile("C:\\1.tif"); 2&& Guid guid = (Guid)img.FrameDimensionsList.GetValue(0); 3&& FrameDimension dimension = new FrameDimension(guid); 4&& int totalPage = img.GetFrameCount(dimension); 5 6&& this.statusBar1.Text = "共"+totalPage+"页"; 7 8&& for(int i=0;i&totalPage;i++) 9&& { 10&&& img.SelectActiveFrame(dimension,i); 11&&&&&&&&&&&&&&& img.Save("C:\\Gif"+i+".gif",System.Drawing.Imaging.ImageFormat.Gif); 12&& } 13
阅读(...) 评论()提示信息 - 酷友社区
后使用快捷导航没有帐号?
|备案证号: 粤ICP备号-1&&Copyright (C) 宇龙计算机通信科技(深圳)有限公司

参考资料

 

随机推荐