How to call SetROP2 to set the current foreground mix mode in GDI+

  • Thread starter Thread starter °Ë´óɽÈË
  • Start date Start date
°

°Ë´óɽÈË

Hi guys,

As you know, we can call SetROP2 to set the current foreground mix mode
in GDI. But I doesn't work in GDI+.
The step is: GetDC --> SetROP2 -->Graphics.FromDC, then draw sth by graphics
object.

How to realize it in GDI+?
 
The raster-op modes will not work in GDI+ at-all.

You can use SetROP2 and then draw exclusively with GDI commands via interop
but using GDI+ commands on a Graphics object created from a DC which has had
the raster-op modified will show no change.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Image transition effects, snap-to-grid and Layered Windows are
all discussed in May's edition of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
 
Back
Top