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 » Remove the transparent area around the image (sprite optimization)
Remove the transparent area around the image (sprite optimization) [message #51756] Thu, 16 May 2019 10:51 Go to previous message
Vitorio is currently offline  Vitorio
Messages: 1
Registered: May 2019
Junior Member
Hello.

I looked at examples of working with images, but have not yet understood which approaches are most effective in terms of performance. Tell me, please, what controls and classes can I use to remove the transparent area around the sprite?

My sprites are stored in PNG files (32 bits, RGBA).
I need:
1. open sprite image from file.
2. calculate the rectangle bounding the opaque area of the sprite.
2. remove the transparent area around.
3. save the result to a PNG file.

index.php?t=getfile&id=5843&private=0

p.s. U++ is amazing!Smile
 
Read Message
Read Message
Previous Topic: Painter: Excessive memory usage in PainterExamples moving window to edges of screen.
Next Topic: Drawing / Painter Difference,Usage,Manual
Goto Forum:
  


Current Time: Wed Nov 20 22:03:31 CET 2019

Total time taken to generate the page: 0.01294 seconds