パッケージ jp.co.osstech.libjeid.dl

クラス INDLPhoto

java.lang.Object
jp.co.osstech.libjeid.dl.INDLPhoto

public class INDLPhoto extends Object
INDLhotoは、マイナ運転免許証仕様の「写真」に対応するクラスです。
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
    INDLPhoto(byte[] encoded)
    INDLPhotoオブジェクトを構築します。
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    byte[]
    顔写真(JPEG2000)を返します。
    顔写真(JPEG2000)をデコードしてBitmapARGBオブジェクトを返します。
    Stringオブジェクトを返します。

    クラスから継承されたメソッド java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • コンストラクタの詳細

    • INDLPhoto

      public INDLPhoto(byte[] encoded)
      INDLPhotoオブジェクトを構築します。
      パラメータ:
      encoded - 符号化データ
  • メソッドの詳細

    • toString

      public String toString()
      Stringオブジェクトを返します。
      オーバーライド:
      toString クラス内 Object
      戻り値:
      Stringオブジェクト
    • getEncoded

      public byte[] getEncoded()
      顔写真(JPEG2000)を返します。
      戻り値:
      符号化データ
    • getPhotoBitmapARGB

      public BitmapARGB getPhotoBitmapARGB() throws IOException
      顔写真(JPEG2000)をデコードしてBitmapARGBオブジェクトを返します。
      以下は取得したBitmapARGBのインスタンスからandroid.graphics.Bitmapのインスタンスを作成するサンプルコードです。
      (argbはBitmapARGBのインスタンスです)
      
       Bitmap bitmap = Bitmap.createBitmap(argb.getData(),
                                           argb.getWidth(),
                                           argb.getHeight(),
                                           Bitmap.Config.ARGB_8888);
      戻り値:
      顔写真
      例外:
      IOException - デコードエラー