ReflectionImage是从android.widget.ImageView继承而来,使用方法和其他的Android控件一样实现思路是从某个网站上剽窃过来的。实现起来很简单,详细的解释写到注释里面,总体思路就是在Canvas里面重新把原始图片画一次,反转图片用Matrix来做,透明处理实际上是加了一层渐变的蒙板.源码如下:importandroid.content.Context;importandroid.graphics.Bitmap;impor
系统 2019-08-29 22:07:41 2276
目录贴:跟我学Shiro目录贴对于SSL的支持,Shiro只是判断当前url是否需要SSL登录,如果需要自动重定向到https进行访问。首先生成数字证书,生成证书到D:\localhost.keystore使用JDK的keytool命令,生成证书(包含证书/公钥/私钥)到D:\localhost.keystore:keytool-genkey-keystore"D:\localhost.keystore"-aliaslocalhost-keyalgRSA输
系统 2019-08-29 22:00:44 2276
效果图初始输入数据Add显示数据Query实现过程的主要代码:Click事件中caseR.id.add:Personperson=newPerson();person.name=name.getText().toString();person.age=Integer.valueOf(age.getText().toString());Mapparam=newHashMap();param.put("person",person);task=newTask(
系统 2019-08-12 09:29:35 2276
Decode(){FILE*inpf;intnWrite;inti,p;intnalLen;unsignedchar*Buf;intgot_picture,consumed_bytes;unsignedchar*DisplayBuf;DisplayBuf=(unsignedchar*)malloc(60000);charoutfile[]="test.pgm";//1.打开输入文件inpf=fopen("test.264","rb");//outf=fop
系统 2019-08-12 09:27:30 2276
题目链接题意:对输入的点极角排序思路:极角排序方法#include#include#include#includeusingnamespacestd;structpoint{doublex,y;}p[50],pp;doublecross(pointa,pointb,pointc){return(a.x-c.x)*(b.y-c.y)-(b.x-c.x)*(a.y-c.y);}boolc
系统 2019-08-12 09:27:17 2276
--修改表空间的数据文件路径;--5个步骤--1.altertablespacetbs_nameoffline;--2.物理拷贝到指定路径【这个很重要】--3.altertablespace表空间名renamedatafile'文件原有路径'to'文件新路径';--4.alterdatabaserecoverdatafile'文件新路径';--5.altertablespace表空间名online;如何修改表空间数据文件路径
系统 2019-08-12 01:53:31 2276
简单题1/*2ID:leetcod33PROG:sort34LANG:C++5*/6#include7#include8#include9#include
原文:数据库开发篇(一)——转换日期类型SQLServer支持的日期时间格式SQLcodeSelectCONVERT(varchar(100),GETDATE(),0):0516200610:57AMSelectCONVERT(varchar(100),GETDATE(),1):05/16/06SelectCONVERT(varchar(100),GETDATE(),2):06.05.16SelectCONVERT(varchar(100),GETDATE
系统 2019-08-12 01:51:31 2276
publicpartialclassFrm_Main:Form{Bitmapbit;//声明位图对象publicFrm_Main(){InitializeComponent();}privatevoidForm1_Load(objectsender,EventArgse){bit=newBitmap("font.bmp");//从指定的图像初始化Bitmap类对象bit.MakeTransparent(Color.Blue);//使用默认的透明颜色对Bit
系统 2019-08-12 01:33:43 2276
flaskweb后台启动后会发现默认是localhost127.0.0.1:5000如果需要修改,方便调试发布可以采用以下方式运行fromflaskimportFlaskfromflaskimportrequestapp=Flask(__name__)@app.route('/')defindex():user_agent=request.headers.get('User_Agent')return'user_agentis%s'%user_agenti
系统 2019-09-27 17:56:35 2275