All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vudroid.core.DecodeService Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package org.vudroid.core;

import android.content.ContentResolver;
import android.graphics.Bitmap;
import android.graphics.RectF;
import android.net.Uri;
import android.view.View;

import org.vudroid.core.codec.CodecPage;

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);
    
    CodecPage getPage(int pageIndex);
    
    void recycle();
    
    

    public interface DecodeCallback
    {
        void decodeComplete(Bitmap bitmap);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy