Comments (2)
what I might do instead:
- add some way to generate a 1-bit alpha mask for an image
- extend to_Image to allow specifying a pixel format and applying the mask if possible (i.e. RGBA)
Mask generation would probably also help for compositing patches to build textures, per the other issue
from omgifol.
Graphic.to_Image now has an optional mode parameter; passing "RGBA" produces an image with transparency.
There are also now to_pixels and from_pixels, which deal in lists of 8-bit pixel values with transparent pixels as negative. These might be usable for converting whole textures to 8-bit images or if converting and pasting a bunch of smaller RGBA images together doesn't perform well.
from omgifol.
Related Issues (20)
- Polygon functions for usable sector shapes
- tall patches
- TextureDef.to_Image()
- Replace structs with classes? HOT 4
- use standard data sizes in Graphic.to_raw
- PNAMES entries not being stripped correctly in py3
- omg.WAD should support reading from read-only WAD files. HOT 1
- Discrepancy between same map data pre-and-post to_lumps HOT 4
- mirror.py demo script has issues saving certain maps HOT 5
- randomly generate maps with different layouts HOT 6
- ACS script is not written into the new wad file HOT 3
- UDMF support HOT 1
- pk3 file support HOT 1
- Potential PK3 Support HOT 1
- inconsistent api for creating lumps from various classes HOT 3
- complains about missing SECTORS lump, but it's there HOT 4
- How to set started location and goal? HOT 1
- omg.WAD placing lumps in wrong groups with missing end markers
- please add support for Heretic/Hexen raw screen graphics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omgifol.