recycle: LRU: 计算inSampleSize: 缩略图: 三级缓存: ...
分类:
移动开发 时间:
2018-04-30 11:54:07
阅读次数:
233
private Bitmap ZoomImage(Bitmap bitmap, int destHeight, int destWidth) { try { System.Drawing.Image sourImage = bitmap; int width = 0, height = 0; //按 ...
1、redis基础入门2、redis应用进阶一、概念redis是一个开源的键-值,即是缓存又是存储,支持持久化,借助sentinel实现一定意义的高可用,数据结构服务器:string,list,hash,set,sortedset,bitmap,hyperloglognosql四种流派:key-value键值型:Memcachedredisdocumemtation文档型:Mongodbcolum
分类:
数据库 时间:
2018-04-28 00:21:19
阅读次数:
213
1.封面图片,位图 BMP文件的数据按照从文件头开始的先后顺序分为四个部分: Ø bmp文件头(bmp file header):提供文件的格式、大小等信息 Ø 位图信息头(bitmap information):提供图像数据的尺寸、位平面数、压缩方式、颜色索引等信息 Ø 调色板(color pal ...
分类:
其他好文 时间:
2018-04-26 14:02:33
阅读次数:
165
概述 概述 Canvas API(画布)用于在网页实时生成图像,并且可以操作图像内容,基本上它是一个可以用JavaScript操作的位图(bitmap)。 使用前,首先需要新建一个<canvas>网页元素。 <canvas id="myCanvas" width="400" height="200" ...
前言 最近研究OpenGL ES相关和 GPU 相关 发现这篇文章很具有参考的入门价值. 理解 UIView 的绘制, UIView 是如何显示到 Screen 上的? 首先要从Runloop开始说,iOS 的MainRunloop 是一个60fps 的回调,也就是说16.7ms(毫秒)会绘制一次屏 ...
分类:
其他好文 时间:
2018-04-15 18:46:18
阅读次数:
245
◆android-zxingLibrary 集成方便 可打开默认二维码扫描页面 支持对图片Bitmap的扫描功能 支持对UI的定制化操作 支持对条形码的扫描功能 支持生成二维码操作 支持控制闪光灯开关 集成到项目: S1.添加依赖 compile 'cn.yipianfengye.android:z ...
分类:
移动开发 时间:
2018-04-15 11:56:34
阅读次数:
290
1、将访问过的url保存到数据库中。(效率非常低) 2、将访问过的url保存到set中,只需要o(1)的代价就可以查询url。(内存占用大)(1亿条url占用6个G) 3、url经过md5等方法哈希后保存到set中(md5压缩url,降低内存) (scrapy使用的去重类似这种,1亿条url占用1个 ...
分类:
其他好文 时间:
2018-04-13 22:28:21
阅读次数:
204
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7... ...
原文:Taking WPF “Screenshots” I was recently working on a Surface project at Microsoft (that will be shown at BETT ) and one of the requirements was to ...