Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » DrawImage with XOR undefined
DrawImage with XOR undefined [message #9067] Mon, 16 April 2007 15:15 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
I am currently trying to use the following function from the help

Quote:


enum { EFFECT_MASK, STANDARD, GRAYED, ETCHED, XOR }

EFFECT_MASK bit mask covering all values of supported drawing effects
STANDARD Displays the image with its usual colors.
GRAYED Draws a grayed image, i.e. discards color information.
ETCHED Draws an 'etched' image outline (used e.g. in toolbars to mark 'disabled' buttons).
XOR Draws the image using the XOR bitwise operator. This is sometimes used for drag & drop where, during dragging, the desired image is being repeatedly displayed and removed using the same logical operation.


void DrawImage(const Rect& rect, const Image& img, int fx = 0)
Draws the whole image img into the rectangle rect relative to current coordinate origin.
rect Destination (output) rectangle (relative to current origin)
img Image to draw at the specified location.
fx Special drawing effects (see above).



I want to do exactly what it describes for drag and drop using XOR but when I compile I get XOR undefined. Is there something wrong with this please?

	w.DrawImage(rc1,m_image,XOR); 	
	w.DrawImage(rc2,m_image,XOR); 


Any help much appreciated.

Thanks,

Nick

p.s. I searched the upp/src for the terms XOR and ETCHED and got no hits apart from one comment. If the documentation is out of date, can anyone tell me what the current best way to do this is because I've looked through all the examples and reference and cannot find anything.


[Updated on: Mon, 16 April 2007 16:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to import iml from other class?
Next Topic: from window to image
Goto Forum:
  


Current Time: Sat Dec 07 21:19:06 CET 2024

Total time taken to generate the page: 0.01394 seconds