To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9871
9870  |  9872
Subject: 
Re: LPub mask generation
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 20 Sep 2004 16:52:53 GMT
Viewed: 
1749 times
  
In lugnet.cad.dev, Kevin L. Clague wrote:
  
   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 TCPngImageFormat.{h,cpp}. They might even compile without modification; they definitely compile in Linux and Visual Studio.

LDView source can be downloaded from here:

http://home.san.rr.com/tcobbs/LDView/Downloads.html

--Travis

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.

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, so you should be able to make both into base classes, move the code in dealloc into the destructors, and make the destructors public.

--Travis



Message has 1 Reply:
  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)

Message is in Reply To:
  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)

21 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR