<p dir="ltr">Hello all,</p>
<p dir="ltr">The method suggested by David works. The only thing to consider is that I had stored the pixels in RGBA order, while the "set-argb-pixels" method expects it in ARGB order (hence the name).</p>
<p dir="ltr">Fixing the storage order led to the expected behavior.</p>
<p dir="ltr">Many thanks to David!</p>
<p dir="ltr">Best Regards,</p>
<p dir="ltr">Alexander</p>