gpt4 book ai didi

com.koolearn.klibrary.ui.android.image.ZLAndroidImageData.getBitmap()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 11:34:28 25 4
gpt4 key购买 nike

本文整理了Java中com.koolearn.klibrary.ui.android.image.ZLAndroidImageData.getBitmap()方法的一些代码示例,展示了ZLAndroidImageData.getBitmap()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLAndroidImageData.getBitmap()方法的具体详情如下:
包路径:com.koolearn.klibrary.ui.android.image.ZLAndroidImageData
类名称:ZLAndroidImageData
方法名:getBitmap

ZLAndroidImageData.getBitmap介绍

暂无

代码示例

代码示例来源:origin: ydcx/KooReader

public Bitmap getFullSizeBitmap() {
  return getBitmap(null, ZLPaintContext.ScalingType.FitMaximum);
}

代码示例来源:origin: Jiangzqts/EpubRead

public Bitmap getFullSizeBitmap() {
  return getBitmap(null, ZLPaintContext.ScalingType.FitMaximum);
}

代码示例来源:origin: Jiangzqts/EpubRead

@Override
public Size imageSize(ZLImageData imageData, Size maxSize, ScalingType scaling) {
  final Bitmap bitmap = ((ZLAndroidImageData) imageData).getBitmap(maxSize, scaling);
  return (bitmap != null && !bitmap.isRecycled())
      ? new Size(bitmap.getWidth(), bitmap.getHeight()) : null;
}

代码示例来源:origin: ydcx/KooReader

@Override
public Size imageSize(ZLImageData imageData, Size maxSize, ScalingType scaling) {
  final Bitmap bitmap = ((ZLAndroidImageData) imageData).getBitmap(maxSize, scaling);
  return (bitmap != null && !bitmap.isRecycled())
      ? new Size(bitmap.getWidth(), bitmap.getHeight()) : null;
}

代码示例来源:origin: ydcx/KooReader

public Bitmap getBitmap(int maxWidth, int maxHeight) {
  return getBitmap(new ZLPaintContext.Size(maxWidth, maxHeight), ZLPaintContext.ScalingType.FitMaximum);
}

代码示例来源:origin: Jiangzqts/EpubRead

@Override
public void drawImage(int x, int y, ZLImageData imageData, Size maxSize, ScalingType scaling, ColorAdjustingMode adjustingMode) {
  final Bitmap bitmap = ((ZLAndroidImageData) imageData).getBitmap(maxSize, scaling);
  if (bitmap != null && !bitmap.isRecycled()) {
    switch (adjustingMode) {
      case LIGHTEN_TO_BACKGROUND:
        myFillPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.LIGHTEN));
        break;
      case DARKEN_TO_BACKGROUND:
        myFillPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DARKEN));
        break;
      case NONE:
        break;
    }
    myCanvas.drawBitmap(bitmap, x, y - bitmap.getHeight(), myFillPaint);
    myFillPaint.setXfermode(null);
  }
}

代码示例来源:origin: Jiangzqts/EpubRead

public Bitmap getBitmap(int maxWidth, int maxHeight) {
  return getBitmap(new ZLPaintContext.Size(maxWidth, maxHeight), ZLPaintContext.ScalingType.FitMaximum);
}

代码示例来源:origin: ydcx/KooReader

@Override
public void drawImage(int x, int y, ZLImageData imageData, Size maxSize, ScalingType scaling, ColorAdjustingMode adjustingMode) {
  final Bitmap bitmap = ((ZLAndroidImageData) imageData).getBitmap(maxSize, scaling);
  if (bitmap != null && !bitmap.isRecycled()) {
    switch (adjustingMode) {
      case LIGHTEN_TO_BACKGROUND:
        myFillPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.LIGHTEN));
        break;
      case DARKEN_TO_BACKGROUND:
        myFillPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DARKEN));
        break;
      case NONE:
        break;
    }
    myCanvas.drawBitmap(bitmap, x, y - bitmap.getHeight(), myFillPaint);
    myFillPaint.setXfermode(null);
  }
}

代码示例来源:origin: Jiangzqts/EpubRead

Bitmap getBitmap(ZLImage image) {
  final ZLAndroidImageManager mgr = (ZLAndroidImageManager)ZLAndroidImageManager.Instance();
  final ZLAndroidImageData data = mgr.getImageData(image);
  if (data == null) {
    return null;
  }
  return data.getBitmap(2 * myCoverWidth, 2 * myCoverHeight);
}

代码示例来源:origin: ydcx/KooReader

Bitmap getBitmap(ZLImage image) {
  final ZLAndroidImageManager mgr = (ZLAndroidImageManager)ZLAndroidImageManager.Instance();
  final ZLAndroidImageData data = mgr.getImageData(image);
  if (data == null) {
    return null;
  }
  return data.getBitmap(2 * myCoverWidth, 2 * myCoverHeight);
}

代码示例来源:origin: ydcx/KooReader

Bitmap myBitmap = ((ZLAndroidImageData) imageData).getBitmap(mWidth, mHeight);

代码示例来源:origin: Jiangzqts/EpubRead

Bitmap myBitmap = ((ZLAndroidImageData) imageData).getBitmap(mWidth, mHeight);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com