- 変数に割り当てると
- はそれ
- に色相関数を適用し、バック
をそれを置くビットマップに変換する必要がありback.pngファイルを持っていますa = BitmapFactory.decodeResource(this.getResources(),R.drawable.back); b = Hue(a); View c = (View)findViewById(R.drawable.back); ///need to make View C = Bitmap B ... but how?
これまでのところ、私のビットマップ "b"の割り当て方法は分かりませんが、 "C"を見に戻る...任意のアイデア?
ありがとうございます!疲れ
backrepeat.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/back"
android:tileMode="repeat" />
AbsoluteLayout al = (AbsoluteLayout)findViewById(R.id.setLay);
Drawable dback = al.getBackground();
a = ((BitmapDrawable)dback).getBitmap();
//b = Hue(a);
d =new BitmapDrawable(a);
al.setBackgroundDrawable(d);
編集、一つが、その後再びビットマップに描画可能に変換し、することがtileingさロースせていること。 ....
を私はちょうど...
c.setImageBitmap(b); – ingsaurabh