In Draw picture in picture@anon20074439 found out why my code for drawing a small picture in a larger picture doesn’t work. I’m adding BS style icons to my app and need to draw now the small icon in a larger icon for PDFs.
If I draw the 2 icons directly then everything works fine:
dim p as new Picture(folder_outline.Width, folder_outline.Height)
p.Graphics.DrawPicture(folder_outline, 0, 0)
p.Graphics.DrawPicture(exclamation_outline, 0, 0)
But when I add the small icon in the code I had written then I only get the original icon:
dim p as new Picture(folder_outline.Width, folder_outline.Height)
p.Graphics.DrawPicture(folder_outline, 0, 0)
p = AddExclamation(p, true)
g.DrawPicture(p, 0, 0)
If you remove the .CopyColorChannels from the DrawPicture does that preserve the mask ok when you need to run them through the invert? Can you then remove the ApplyMask ?