LibreCAD
›
LibreCAD-dev
Login
Register
Search
everywhere
only in this topic
Advanced Search
PNG files
‹
Previous Topic
Next Topic
›
Classic
List
Threaded
♦
♦
Locked
10 messages
Options
Loading...
Subscribe via email
Move topic
Pin topic
Unpin topic
Lock topic
Unlock topic
Delete this topic
Delete this topic
Change title and meta tags
Embed post
Permalink
ShinRevolver
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 03, 2014; 3:58am
PNG files
Hi,
Has anyone here used pngwriter? Its a library that creates a .png file. I trying to add it as a library to see if I can save any drawing as a .png file. Its mainly a school project. Any tips? I'm new here. Thanks.
sp1der
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 03, 2014; 9:55am
Re: PNG files
LibreCAD can already save a drawing to a .png format, is this no good for you?
ShinRevolver
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 04, 2014; 12:58am
Re: PNG files
Oh. Snap. Scratch that idea. Know any simple ones that I can implement? I would greatly appreciate it.
dxli
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 04, 2014; 5:15am
Re: PNG files
It may work, to create your own painter class similar to RS_Painter.
You need to replace all drawing methods there (RS_Painter) to use pngwriter.
It sounds quite lots of work.
ShinRevolver
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 05, 2014; 3:10am
Re: PNG files
I'll look into it. Thanks.
ShinRevolver
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 08, 2014; 7:15am
Re: PNG files
In reply to
this post
by dxli
Can you tell me where the code for the export of features(to png, to jpeg, etc.) is located? I can't seem to locate it. Thanks.
dxli
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 08, 2014; 1:43pm
Re: PNG files
void QC_ApplicationWindow::slotFileExport() ;
ShinRevolver
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 10, 2014; 2:19am
Re: PNG files
Thanks. This is in terms of the UI, if I'm not mistaken. Where do you put the code in order for it to create the file(i.e png, jpeg, etc.)?
dxli
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 11, 2014; 7:32pm
Re: PNG files
the code to generate an image file in line 3249,
if (iio.write(img)) {
ret = true;
}
ShinRevolver
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 13, 2014; 12:48am
Re: PNG files
Thanks.
Free forum by Nabble
Edit this page