12345678910111213141516171819202122232425262728293031323334353637 |
- package com.poqop.document;
- import android.content.ContentResolver;
- import android.graphics.Bitmap;
- import android.graphics.RectF;
- import android.net.Uri;
- import android.view.View;
- public interface DecodeService
- {
- void setContentResolver(ContentResolver contentResolver);
- void setContainerView(View containerView);
- void open(Uri fileUri);
- void decodePage(Object decodeKey, int pageNum, DecodeCallback decodeCallback, float zoom, RectF pageSliceBounds);
- void stopDecoding(Object decodeKey);
- int getEffectivePagesWidth();
- int getEffectivePagesHeight();
- int getPageCount();
- int getPageWidth(int pageIndex);
- int getPageHeight(int pageIndex);
- void recycle();
- public interface DecodeCallback
- {
- void decodeComplete(Bitmap bitmap);
- }
- }
|