live demo | npm | GitHub JavaScript painting plugin which allows editing images in a browser. Can be easily integrated into any website or webapp by calling simple initialization code. 🙏🙏🙏 Scream for help to Ukraine 🇺🇦 24 February 2022, Russia started bombing cities with peacefully civilized population in whole Ukraine. And has been doing it up to this day. Breaking all laws of war. Their bom
Canvasを透明色で塗りつぶすの応用。 Canvasクラスのdraw系メソッドに渡すPaintパラメーターに、上記と同じようにPorterDuffルールを設定してあげる。 例:透明な四角を描画する。 Canvas canvas = getHolder.lockCanvas(); Paint paint = new Paint(); paint.setColor(Color.TRANSPARENT); paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); canvas.drawRect(0, 0, 30, 30, paint); getHolder().unlockCanvasAndPost(canvas); Register as a new user and use Qiita more convenient
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く