| | Re: LPub mask generation
|
| (...) LPub is written in Borland C++ Builder, which is the C++ version of Delphi. The programing language is different, but the libraries are the same. I'd like Alpha channel, instead of binary bitmap, because it might provide some help with (...) (20 years ago, 16-Sep-04, to lugnet.cad.dev)
| | | | Re: LPub mask generation
|
| (...) If you're interested, LDView has two C++ classes that together allow you to write a PNG via libpng. They have the advantage of being much easier to use that libpng itself. Take a look in the LDView source at TCImage.{h,cpp} and (...) (20 years ago, 16-Sep-04, to lugnet.cad.dev)
| | | | Re: LPub mask generation
|
| (...) Hi Travis, I've downloaded LDview, and gotten libpng and zlib built under C++ Builder. What classes do you have for reading and writing PNG files based on libpng. I'd like to give them a look. Thanks, Kevin (20 years ago, 20-Sep-04, to lugnet.cad.dev)
| | | | Re: LPub mask generation
|
| (...) Both classes are in the TCFoundation directory: TCImage and TCPngImageFormat. To use them directly, you'll also need TCObject and TCAutoreleasePool. However, the only thing they use out of there that I know of is my reference counting stuff, (...) (20 years ago, 20-Sep-04, to lugnet.cad.dev, FTX)
| | | | Re: LPub mask generation
|
| I forgot a few things. First of all, you'll also need the TCImageFormat class. Second, in TCImage, you'll need to comment out the line that looks like so (unless you want to use my TCBmpImageFormat class): addImageFormat(new TCBmpImageFormat, true); (...) (20 years ago, 21-Sep-04, to lugnet.cad.dev)
| |