T O P I C R E V I E W |
Ken Randall |
Posted - May 24 2022 : 20:50:43 Hi Nigel,
I want to create a collection of several hundred faces with different hats, eyes, mouth, etc.
What's my best starting point?
Regards,
Ken
Ken R |
3 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - May 25 2022 : 17:04:39 Hi Ken
In general, I would say that layers are for end-users rather than programmatic usage. Almost everything that can be done with layers in code, can also be done without them, so they add unnecessary abstraction (reduced performance, more complexity and potentially more bugs). There are some situations where using layers in code has benefits, but if everything you need done can be done with bitmaps, then stick with that.
Nigel Xequte Software www.imageen.com
|
Ken Randall |
Posted - May 25 2022 : 04:06:33 Thanks Nigel. My first thought was to go with layers.
Ken R |
xequte |
Posted - May 24 2022 : 21:37:50 Hi Ken
If I was doing it:
- Create folders containing assets, Eyes folder, Hats folder, etc. - Assets are transparent images, e.g. PNG files, or vector shapes like SVG, WMF, etc. - Record the position information for each object, e.g. TallHat.png needs to be positioned at (10,20), Beret.png needs to be positioned at (10,50), etc. I would probably do it by having an information file of the same name, e.g. TallHat.png would have TallHat.ini, etc. - Your application would then just randomly choose one asset from each folder and build up an image, drawing using a method like:
https://www.imageen.com/help/TIEBitmap.DrawToTIEBitmap.html
Nigel Xequte Software www.imageen.com
|
|
|