Changes between Initial Version and Version 1 of Ticket #4098, comment 3


Ignore:
Timestamp:
Jun 9, 2026, 7:18:23 PM (9 days ago)
Author:
mLipok

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4098, comment 3

    initial v1  
    33To resolve this without the need for a complex $WM_PAINT message handler, the updated example separates the source and target canvas by creating a new blank bitmap via _GDIPlus_BitmapCreateFromScan0. The original capture is drawn onto this new bitmap while applying the ColorMatrix attributes, preventing any GDI+ source-target conflicts. Finally, the processed image is converted to a GDI handle and assigned to a native AutoIt Picture control (GUICtrlCreatePic) via $STM_SETIMAGE. This solves both issues at once: it ensures clean GDI+ rendering and relies entirely on native Windows OS routines to keep the image persistent during minimization or restoration.
    44
    5 {{{
     5{{{#!autoit
    66#include <GDIPlus.au3>
    77#include <GUIConstantsEx.au3>