▶ 実 行
▶ 実行
クリア
画像svg化 規格
by shikiishi
色データ=[] 処理範囲=[0,0,300,250] もし、プラグイン名=「メイン」ならば、 IM=「https://n3s.nadesi.com/image.php?f=263.png」を画像読み待つ。 [0,0]へIMを画像描画。 色データ=処理範囲の色データ取得。 [10,10,300,250]を色データで画像処理反映。 ここまで ●(xywhの|xywhを)色データ取得 描画中コンテキストの「getImageData」をxywhでJSメソッド実行して、それ["data"]で戻る。 ここまで。 ●(xywhを色データで|xywhに)画像処理反映 『(function (xywh,color,ctx){ const [x,y,w,h]=xywh; const img = ctx.getImageData(x,y,w,h); let data = img.data; for (let i=0; i<data.length;i++){data[i]=color[i]} ctx.putImageData(img,x,y); })』を[xywh,色データ,描画中コンテキスト]でJS関数実行。 ここまで。
c583a077e5a7c126b7a5d75aef21a3e2
2716