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 » RichText,QTF,RTF... » PNG support in QTF or RTF
PNG support in QTF or RTF [message #257] Mon, 05 December 2005 13:52 Go to next message
amea is currently offline  amea
Messages: 7
Registered: December 2005
Location: ireland
Promising Member
Hello,

Is it possible to load a PNG image into a richEdit document for display and printing? I've browsed the available classes and am unable to resolve if this is possible?


Thanks
Re: PNG support in QTF or RTF [message #259 is a reply to message #257] Mon, 05 December 2005 14:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes.

Actually, you can place any graphics to RichText using RichObject class. PNG is standard RichObject type. Create PNG RichObject by loading PNG into String and constructing it using

RichObject("PNG", PngString, size_in_dots)

You can then Cat RichObject to RichPara and RichPara to RichText...

Mirek
Re: PNG support in QTF or RTF [message #278 is a reply to message #259] Mon, 05 December 2005 22:55 Go to previous message
amea is currently offline  amea
Messages: 7
Registered: December 2005
Location: ireland
Promising Member
Thanks Mirek,

Will try this...my C++ is veeerrry rusty, so will get back when I get it going!

amea
Next Topic: howto add Table to RichtextView?
Goto Forum:
  


Current Time: Tue Apr 23 11:52:59 CEST 2024

Total time taken to generate the page: 0.02482 seconds