All 6 sides of a cube are to becoated with paint. Each side is is coated uniformly with one color. When a selectionof n different colors of paint is available, how many different cubes can youmake?
...
分类:
其他好文 时间:
2014-09-06 20:03:53
阅读次数:
254
字体有三种类型:1,内置基本字体 2,通过基本字体和样式,创建新的Typeface 3,引入外部的ttf文件。
示例代码如下:
1. package com.mike.activity;
2.
3. import android.R;
4. import android.app.Activity;
5. import android.graphics.Bitmap;
6. i...
分类:
移动开发 时间:
2014-09-05 18:21:42
阅读次数:
217
在使用gdi技术画图时,有时会发现图形线条不够流畅,或者在改变窗口大小时会闪烁不断的现象.(Use DoubleBuffer to solve it!) ...
分类:
其他好文 时间:
2014-09-04 22:06:00
阅读次数:
375
一种是直接对Bitmap的像素进行操作,如:叠加、边框、怀旧、(高斯)模糊、锐化(拉普拉斯变换)。Bitmap.getPixels(srcPixels, 0, width, 0, 0, width, height); newR = (int) (pixR * alpha + layR * (1 -....
分类:
编程语言 时间:
2014-08-29 21:20:58
阅读次数:
382
1 import android.content.Context; 2 import android.graphics.Canvas; 3 import android.graphics.Color; 4 import android.graphics.Paint; 5 import androi....
DirectUI意为直接在父窗口上绘图(Paint on parent dc directly)。即子窗口不以窗口句柄的形式创建(windowless),只是逻辑上的窗口,绘制在父窗口之上。微软的“DirectUI”技术广泛的应用于Windows XP、Vista、Windows 7,如浏览器左侧的...
分类:
其他好文 时间:
2014-08-29 17:49:38
阅读次数:
274
/////////继承SurfaceView 的类
public class PaintView extends SurfaceView implements Runnable,SurfaceHolder.Callback {
private float mX;
private float mY;
private Paint mPaint = null;...
分类:
其他好文 时间:
2014-08-28 11:28:19
阅读次数:
185
>_hWin; 40 GUI_PID_STATE State; 41 GUI_PID_GetState(&State); 42 switch (pMsg->MsgId) { 43 case WM_PAINT: 44 State.x -= WM_GetWindowOrgX(hW...
分类:
移动开发 时间:
2014-08-24 22:00:33
阅读次数:
269
1 public class RoundImageView extends ImageView { 2 private Paint paint; 3 private int roundWidth = 50; 4 private int roundHeight = 50...
分类:
移动开发 时间:
2014-08-24 11:32:42
阅读次数:
211
1 public class RoundImageView extends ImageView { 2 private Paint paint; 3 private int roundWidth = 50; 4 private int roundHeight = 5...
分类:
移动开发 时间:
2014-08-22 19:43:29
阅读次数:
208