Android-Entwicklung: Wie öffnet man eine .dcm-Datei als Bitmap?
Ich versuche gerade, eine Android-DICOM-App zu erstellen. Der folgende Code öffnet Bilder von res / drawable in "üblichen" Bildformaten, aber es funktioniert nicht mit .dcm
public class BitmapView extends View
{
public BitmapView(Context context) {
super(context);
}
@Override
public void onDraw(Canvas canvas) {
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.test);
canvas.drawColor(Color.BLACK);
canvas.drawBitmap(bmp, 10, 10, null);
}
}
in der Haupttätigkeit:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new BitmapView(this));
}
Danke im Voraus!