本文整理了Java中com.koolearn.klibrary.ui.android.view.ZLAndroidPaintContext.<init>()
方法的一些代码示例,展示了ZLAndroidPaintContext.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLAndroidPaintContext.<init>()
方法的具体详情如下:
包路径:com.koolearn.klibrary.ui.android.view.ZLAndroidPaintContext
类名称:ZLAndroidPaintContext
方法名:<init>
暂无
代码示例来源:origin: Jiangzqts/EpubRead
private void onDrawStatic(final Canvas canvas) { // 滑动完后调用静态时调用
/**
* 从myBitmapManager获取一张Bitmap,画到画布上
* myBitmapManager.getBitmap(ZLView.PageIndex.current)是自己创建的canvas,将该view的canva和其连起来才可以显示在view上
*/
canvas.drawBitmap(myBitmapManager.getBitmap(ZLView.PageIndex.current), 0, 0, myPaint);
post(new Runnable() { // 将runnable放到消息队列中
public void run() {
PrepareService.execute(new Runnable() {
public void run() {
final ZLView view = ZLApplication.Instance().getCurrentView(); // 得到当前view
final ZLAndroidPaintContext context = new ZLAndroidPaintContext(
mySystemInfo, canvas,
new ZLAndroidPaintContext.Geometry(getWidth(), getHeight(), getWidth(), getHeight(), 0, 0), 0);
view.preparePage(context, ZLView.PageIndex.next); // 准备下一页
}
});
}
});
}
代码示例来源:origin: ydcx/KooReader
private void onDrawStatic(final Canvas canvas) { // 滑动完后调用静态时调用
/**
* 从myBitmapManager获取一张Bitmap,画到画布上
* myBitmapManager.getBitmap(ZLView.PageIndex.current)是自己创建的canvas,将该view的canva和其连起来才可以显示在view上
*/
canvas.drawBitmap(myBitmapManager.getBitmap(ZLView.PageIndex.current), 0, 0, myPaint);
post(new Runnable() { // 将runnable放到消息队列中
public void run() {
PrepareService.execute(new Runnable() {
public void run() {
final ZLView view = ZLApplication.Instance().getCurrentView(); // 得到当前view
final ZLAndroidPaintContext context = new ZLAndroidPaintContext(
mySystemInfo, canvas,
new ZLAndroidPaintContext.Geometry(getWidth(), getHeight(), getWidth(), getHeight(), 0, 0), 0);
view.preparePage(context, ZLView.PageIndex.next); // 准备下一页
}
});
}
});
}
代码示例来源:origin: Jiangzqts/EpubRead
void drawOnBitmap(Bitmap bitmap, ZLView.PageIndex index) {
final ZLView view = ZLApplication.Instance().getCurrentView();
if (view == null) {
return;
}
final ZLAndroidPaintContext context = new ZLAndroidPaintContext(
mySystemInfo,
new Canvas(bitmap),
new ZLAndroidPaintContext.Geometry(
getWidth(),
getHeight(),
getWidth(),
getHeight(),
0,
0
), 0);
view.paint(context, index);
}
代码示例来源:origin: ydcx/KooReader
void drawOnBitmap(Bitmap bitmap, ZLView.PageIndex index) {
final ZLView view = ZLApplication.Instance().getCurrentView();
if (view == null) {
return;
}
final ZLAndroidPaintContext context = new ZLAndroidPaintContext(
mySystemInfo,
new Canvas(bitmap),
new ZLAndroidPaintContext.Geometry(
getWidth(),
getHeight(),
getWidth(),
getHeight(),
0,
0
), 0);
view.paint(context, index);
}
代码示例来源:origin: ydcx/KooReader
final ZLAndroidPaintContext context = new ZLAndroidPaintContext(
mySystemInfo,
new Canvas(myBitmaps[iIndex]),
代码示例来源:origin: Jiangzqts/EpubRead
final ZLAndroidPaintContext context = new ZLAndroidPaintContext(
mySystemInfo,
new Canvas(myBitmaps[iIndex]),
内容来源于网络,如有侵权,请联系作者删除!