import android.content.Context; import android.graphics.Matrix; import android.graphics.PointF; import android.util.AttributeSet; import android.util....
分类:
其他好文 时间:
2014-11-16 17:14:09
阅读次数:
213
In computer science, string
interning is a method of storing only one copy
of each distinct string value,
which must be immutable.
Interning strings makes some string processing tasks more tim...
分类:
编程语言 时间:
2014-11-16 12:06:31
阅读次数:
221
ASP.NET MVC 3 can be installed side by side with ASP.NET MVC 2 on the same computer, which gives you flexibility in choosing when to upgrade an ASP.NE...
分类:
Web程序 时间:
2014-11-16 09:22:48
阅读次数:
186
import java.awt.Color;import java.awt.Dimension;import java.awt.Graphics;import java.awt.Toolkit;import javax.swing.JFrame;import javax.swing.JPanel;p...
分类:
其他好文 时间:
2014-11-15 21:33:27
阅读次数:
225
题目地址:1282. Computer Game思路: KMP算法,网上有很多资料,参考了一些网上的解题,收获很大,很感谢那些大神们!!! 通过这道题简单说说我对KMP算法的理解吧(大神们勿喷,虽然没人看我的orz~~~~囧)。 首先输入的是要匹配的字符串,如果这个字符串的首字母在整个字符串不...
分类:
其他好文 时间:
2014-11-14 21:00:22
阅读次数:
137
最近对Core Animation和Core Graphics的内容东西比较感兴趣,自己之前也在这块相对薄弱,趁此机会也想补习一下这块的内容,所以之后几篇可能都会是对CA和CG学习的记录的文章。在应用里一个很常见的需求是主题变换:同样的图标,同样的素材,但是需要按照用户喜爱变为不同的颜色。在iOS5...
分类:
移动开发 时间:
2014-11-14 15:34:35
阅读次数:
316
在linux环境下的,生成的带文字的图片在前台一直显示为方框乱码,windows环境正常。
img.setFont(new Font("宋体", Font.BOLD, 20));
写中文进入图片之前必须设置字体,而且这个字体必须支持中文,否则就会出现乱码或者方框、问号等等。
BufferedImage在内存创建的图像调用的是服务器端的字体,所以在img.drawString(str,...
分类:
系统相关 时间:
2014-11-14 09:18:45
阅读次数:
468
public class Drawboard extends JFrame{ Graphics g; public static void main(String[] args){ Drawboard d = new Drawboard(); ...
分类:
其他好文 时间:
2014-11-14 06:58:14
阅读次数:
249
iOS Drawing ConceptsHigh-quality graphics are an important part of your app’s user interface. Providing high-quality graphics not only makes your app ...
分类:
移动开发 时间:
2014-11-13 22:25:27
阅读次数:
522
一个Java类:package com.abc.ufo.util;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.image.BufferedImage;import java.i...
分类:
其他好文 时间:
2014-11-13 20:25:19
阅读次数:
222