====================问题描述==================== android端的图片想通过byte数组的形式传到后台,后台在转化为image图片,其实也就是想把手机端的图片通过字节流的形式或字符串的形式传到后台,后台再转化为图片保存。现在的想法是通过序列化的方式,先在手机...
分类:
移动开发 时间:
2014-09-30 19:45:19
阅读次数:
179
====================问题描述==================== //画笔,定义绘制属性
privatePaintmyPaint;
privatePaintmBitmapPaint; //绘制路径
privatePathmyPath; //画布及其底层位图
privateBi...
分类:
移动开发 时间:
2014-09-30 17:27:09
阅读次数:
177
一、Android编码规范
1.java代码中不出现中文,最多注释中可以出现中文
2.局部变量命名、静态成员变量命名
只能包含字母,单词首字母出第一个外,都为大写,其他字母都为小写
3.常量命名
只能包含字母和_,字母全部大写,单词之间用_隔开
4.layout中的id命名
命名模式为:view缩写_模块名称_view的逻辑名称
view的缩写详情如...
分类:
移动开发 时间:
2014-09-30 12:18:09
阅读次数:
245
BitmapFactory.decodeStream引起了OutOfMemory.在decodeStream之前,通过设置options.inJustDecodeBounds=true;让Bitmap实现虚加载。设置options.inJustDecodeBounds=true;让Bitmap实现虚加载。使用options.outWidth和options.outHeight获取图片宽和高。再使用ImageLoader.getI..
分类:
其他好文 时间:
2014-09-30 03:31:02
阅读次数:
244
int GetBitmapFromScreen() { char *lpBuf; HBITMAP hBitmap,hOld ; HDC hDC,hcDC; BITMAP bb;BITMAPINFO b; HANDLE hp,fh=NULL; DWORD dwX,dwY; //*************** //dwX=GetSystemMetrics(SM_CXSCREEN); //dwY=Get...
分类:
其他好文 时间:
2014-09-28 21:31:55
阅读次数:
155
最近在做一款叫叽叽的App(男银懂的),其中有一个功能需要对图片处理实现毛玻璃的特效进过一番预研,找到了3中实现方案,其中各有优缺点:1、如果系统的api在16以上,可以使用系统提供的方法直接处理图片if (VERSION.SDK_INT > 16) { Bitmap bitm...
分类:
移动开发 时间:
2014-09-28 13:50:12
阅读次数:
228
1、首先说一下canvas类: Class OverviewThe Canvas class holds the "draw" calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a ...
分类:
移动开发 时间:
2014-09-28 11:11:01
阅读次数:
288
透明//Transparent半透明//Translucentimport android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics...
分类:
其他好文 时间:
2014-09-28 11:01:01
阅读次数:
189
using (System.Drawing.Bitmap backgroudImg = System.Drawing.Bitmap.FromFile(DoubleClickPicInfo.FileName) as System.Drawing.Bitmap) { ...
分类:
其他好文 时间:
2014-09-27 17:45:40
阅读次数:
210
当重写ImageView的时候需要获取android:src的值可以通过:getAttributeResourceValue("http://schemas.android.com/apk/res/android","src",0);获取如果是自定义的属性,比如bitmap通过:getAttribu...
分类:
移动开发 时间:
2014-09-27 00:11:49
阅读次数:
364