<ul id="d"></ul>
<script> var t = async_test("test pixel values of a rotated PNG");
const img = new Image(); img.onload = () => {
_addTest(function(canvas, ctx) {
ctx.drawImage(img, 0, 0);
var pixel = ctx.getImageData(5, 5, 1, 1).data;
// The image data stores a 100x100 red block above a 100x100 green block.
// By rotating the image, we can put the green block on top.
const pixel_expected = [0, 255, 0, 255];
const epsilon = 2;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.