Back to project page android-mtg_card_scan.
The source code is released under:
GNU General Public License
If you think the Android project android-mtg_card_scan listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.chrismeyers.android.mtg; /*w w w. ja v a2s . c o m*/ import org.opencv.android.JavaCameraView; import android.content.Context; import android.hardware.Camera.Size; import android.util.AttributeSet; public class ResizableCameraView extends JavaCameraView { public ResizableCameraView(Context context, AttributeSet attrs) { super(context, attrs); } public void setResolution(Size resolution) { disconnectCamera(); mMaxHeight = resolution.height; mMaxWidth = resolution.width; connectCamera(getWidth(), getHeight()); } }