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 » How to copy an image
How to copy an image [message #6663] Wed, 22 November 2006 09:48 Go to next message
WebChaot is currently offline  WebChaot
Messages: 53
Registered: September 2006
Location: Austria, Vienna
Member
Hi all!

I tried to copy an image - but without success.

I have an Image Object - and want to copy (!) that image to another Object. With SetImage the image is not copied but assigned to the new object (which means it is not longer visible in old object).

I also played around with the ImageBuffer. This helped me to locate transparent parts of that image - but also no success by copying Sad

Thanks in advance,

WebChaot.
Re: How to copy an image [message #6664 is a reply to message #6663] Wed, 22 November 2006 10:35 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, I am not quite sure I understand the question...

Image m = GetImage();
Image n = m;

works....

Of course, when ImageBuffer gets in the game, things are a little bit more complicated, because Image<->ImageBuffer assignments clear the source (to keep things fast).

Mirek
Previous Topic: Draw Objects with Wallpapers, ...
Next Topic: How to save a Image as a file?
Goto Forum:
  


Current Time: Fri Mar 29 12:11:35 CET 2024

Total time taken to generate the page: 0.01081 seconds