View Issue Details

IDProjectCategoryView StatusLast Update
0020626LazarusOtherpublic2018-12-16 17:09
ReporterAnna Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version0.9.31 (SVN) 
Summary0020626: cmSrcInvert doesn't work.
DescriptionSee http://lazarus.freepascal.org/index.php/topic,15152.msg81045.html#msg81045

Lazarus : Lazarus-0.9.31-33083-fpc-2.5.1-20111026-win32.exe
OS: Windows XP SP3 Professional Russian
TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Files

Relationships

related to 0020613 resolvedJesus Reyes Problem with CopyMode under Windows OS 
related to 0023742 resolvedZeljan Rikalo Errors in Canvas.Draw (or Canvas.CopyRect) with CopyMode=cmSrcInvert and Pen.Mode=mpXOr 

Activities

Ludo Brands

2011-11-05 16:39

developer   ~0053822

Last edited: 2011-11-05 16:44

I can confirm the problem. Canvas.Draw is ignoring copymode for a bitmap.
EDIT: Lazarus trunk 32738.

A temporary workaround is to use Canvas.CopyRect. Replace

  BitBtn1.Glyph.Canvas.Draw(0, 0, BitBtn2.Glyph);

by
  BitBtn1.Glyph.Canvas.CopyRect(Rect(0,0,BitBtn1.Glyph.Width,BitBtn1.Glyph.Height), BitBtn2.Glyph.Canvas,Rect(0,0,BitBtn2.Glyph.Width,BitBtn2.Glyph.Height));

Anna

2011-11-05 16:56

reporter   ~0053823

Thank you very much for solution. It works wonders.

Ludo Brands

2011-11-05 20:00

developer   ~0053828

Related to 0020613. Upgraded to r33356 but it still doesn't work. It appears that other changes in the LCL result now in Masked being set. In r32738 TWin32WidgetSet.StretchMaskBlt was executed with Masked false.

Issue History

Date Modified Username Field Change
2011-11-05 14:30 Anna New Issue
2011-11-05 16:39 Ludo Brands Note Added: 0053822
2011-11-05 16:44 Ludo Brands Note Edited: 0053822
2011-11-05 16:56 Anna Note Added: 0053823
2011-11-05 20:00 Ludo Brands Note Added: 0053828
2011-11-20 15:27 Juha Manninen Relationship added related to 0020613
2012-02-04 11:57 Zeljan Rikalo LazTarget => 1.2
2012-03-11 11:20 Vincent Snijders Status new => acknowledged
2014-01-14 15:16 Martin Friebe LazTarget 1.2 => 1.4
2015-04-27 21:59 Juha Manninen LazTarget 1.4 => -
2017-11-12 00:36 Juha Manninen Relationship added related to 0023742
2018-12-16 17:09 Bart Broersma Severity block => minor