Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Among the lucky, you are the chosen one.


comp / comp.lang.tcl / Re: Blend2d Save Option

SubjectAuthor
* Blend2d Save Optionkesavapraba
+* Re: Blend2d Save Optionrene
|`- Re: Blend2d Save Optionkesavapraba
`* Re: Blend2d Save OptionArjen
 `* Re: Blend2d Save Optionkesavapraba
  `* Re: Blend2d Save Optionabu
   +- Re: Blend2d Save Optionabu
   `- Re: Blend2d Save Optionkesavapraba

1
Subject: Blend2d Save Option
From: kesavapraba
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Thu, 21 Nov 2024 02:42 UTC
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: prabaiitmadras@gmail.com (kesavapraba)
Newsgroups: comp.lang.tcl
Subject: Blend2d Save Option
Date: Thu, 21 Nov 2024 02:42:29 +0000
Organization: novaBBS
Message-ID: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3433129"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ImDDACvhL0NtEwH2R4fpPpO1kQmCtOb4DmhZzmCKEKg";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$ikKQe3sdhyAu1auqK/CbLuUI4z8fmL59b3m2G0ESZpn5fAksDyGSm
X-Rslight-Posting-User: 2f58975cceecb71955e701c67a5371a15d1df422
View all headers

Dear Community,
Is there any option in Blend2d TCL TK extension to save the graphics as
pdf or svg files? Thanks in advance

--

Subject: Re: Blend2d Save Option
From: rene
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Thu, 21 Nov 2024 09:27 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: r.zaumseil@freenet.de (rene)
Newsgroups: comp.lang.tcl
Subject: Re: Blend2d Save Option
Date: Thu, 21 Nov 2024 09:27:30 +0000
Organization: novaBBS
Message-ID: <c308ae634804d81afd4ef80c52b17a2e@www.novabbs.com>
References: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3468790"; mail-complaints-to="usenet@i2pn2.org";
posting-account="vqZ3ILA+yXkvSJwSfI7f2kTt8fYBcrvisN6nYcjiuPU";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$0qDOWkJGRmnIOR4hAqev8unUVKcjEw.SZKwXjU9X2zY/IgzVj7f/C
X-Rslight-Posting-User: 0f71ed6d2be2e87dfcc8a204934a4e2bbdbc8376
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

Hello

You can alternatively try tkpath or tko::path.
Both coming with support of pdf creation.

HTH
rene

--

Subject: Re: Blend2d Save Option
From: kesavapraba
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Thu, 21 Nov 2024 09:37 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: prabaiitmadras@gmail.com (kesavapraba)
Newsgroups: comp.lang.tcl
Subject: Re: Blend2d Save Option
Date: Thu, 21 Nov 2024 09:37:02 +0000
Organization: novaBBS
Message-ID: <bed26e8fc5bc14fb123df5aa56086d30@www.novabbs.com>
References: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com> <c308ae634804d81afd4ef80c52b17a2e@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3469762"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ImDDACvhL0NtEwH2R4fpPpO1kQmCtOb4DmhZzmCKEKg";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 2f58975cceecb71955e701c67a5371a15d1df422
X-Rslight-Site: $2y$10$RXWc.WtqRBO6PbhNxwjlyeA2FOuSob9SqwGt42p2hWRzxQ25dPC96
View all headers

Thank you for your suggestion, Rene

--

Subject: Re: Blend2d Save Option
From: Arjen
Newsgroups: comp.lang.tcl
Date: Wed, 27 Nov 2024 10:00 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!newsgrouper.org.uk!.POSTED!not-for-mail
From: user153@newsgrouper.org.uk.invalid (Arjen)
Newsgroups: comp.lang.tcl
Subject: Re: Blend2d Save Option
References: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com>
Date: Wed, 27 Nov 2024 10:00:08 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1732701608-153@newsgrouper.org.uk>
Injection-Info: newsgrouper.org.uk; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user153
Injection-Date: Wed, 27 Nov 2024 10:00:08 GMT
User-Agent: Newsgrouper/0.6.6
View all headers

prabaiitmadras@gmail.com (kesavapraba) posted:

> Dear Community,
> Is there any option in Blend2d TCL TK extension to save the graphics as
> pdf or svg files? Thanks in advance
>
> --

Blend2d does have the save subcommand. See Reference Manual -Blend2d 1.3
at the Wiki page https://wiki.tcl-lang.org/page/Blend2d.

Regards,

Arjen

Subject: Re: Blend2d Save Option
From: kesavapraba
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Wed, 27 Nov 2024 13:28 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: prabaiitmadras@gmail.com (kesavapraba)
Newsgroups: comp.lang.tcl
Subject: Re: Blend2d Save Option
Date: Wed, 27 Nov 2024 13:28:07 +0000
Organization: novaBBS
Message-ID: <27adc9465ac47beba9811eb0c0f8537d@www.novabbs.com>
References: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com> <1732701608-153@newsgrouper.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="165831"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ImDDACvhL0NtEwH2R4fpPpO1kQmCtOb4DmhZzmCKEKg";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 2f58975cceecb71955e701c67a5371a15d1df422
X-Rslight-Site: $2y$10$aulMAhvRdqnSWBLWdc5qiOIXhOhve.swIOtQqq76XpGtThD/fsZva
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

Dear Mr. Arjen, Sure. Thank you for taking your time answering my
question.

--

Subject: Re: Blend2d Save Option
From: abu
Newsgroups: comp.lang.tcl
Organization: RetroBBS
Date: Sat, 30 Nov 2024 15:20 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: aldo.w.buratti@gmail.com (abu)
Newsgroups: comp.lang.tcl
Subject: Re: Blend2d Save Option
Date: Sat, 30 Nov 2024 15:20:38 +0000
Organization: RetroBBS
Message-ID: <ec494801e5061bd31ee3d72ddbf9db98@www.rocksolidbbs.com>
References: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com> <1732701608-153@newsgrouper.org.uk> <27adc9465ac47beba9811eb0c0f8537d@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="631383"; mail-complaints-to="usenet@i2pn2.org";
posting-account="mhL2dbCDs3ShDcZELlal7+PiYLtdY9Pl6XXSzjtYA2c";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: ef37f5a0283145179136b24718ee5b6282d02b5e
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$GYU3QtzNt2IiQUgSfGjwv.ZuSQCRXaJGjCCwehthrlx3vtGAKZ5nO
View all headers

Hi, I'm the author of Blend2.

About your interoperability question:

Blend2d can *load* PNG, BMP, QOI files (JPG encoder is not
implemented,yet)
$sfc load mypic.png
and can also import SVG files
# create a new BL::Svgdoc object by loading an SVG files
set mysvg [BL::Svgdoc new "mySVG.svg"]
# add it to the BL:Surface $sfc
$sfc paint $mysvg ;# .. plus a lot of options
It can also import tk-images
image create photo myimage
.. fill myimage ....
$sfc readFromTkPhoto myimage
(this could be a workaround for loading unsupported image formats (GIF,
JPG, ... )

Blend2d can *save* the contents of a BL::surface as PNG, BMP, QOI, JPG
$sfc save myResult.png
or, it can export its contents in a a tk-image
image create photo myimg
$sfc writeToTkphoto myimg

Blend2d *cannot* save-as SVG or PDF; this is impossible since a
BL:Surface is nothing more than a RGBA image.

--
Tip: take a look at
https://abu-irrational.github.io/tclBlend2d-Gallery
It contains screenshots of about 90 Blend2d demos.
You can find the source code for most of these demos within the current
tclBlend2d package.
I'm going to release a new version of Blend2d plus a separate package of
demos containing the source code of all the demos (contributions are
welcome).

Subject: Re: Blend2d Save Option
From: abu
Newsgroups: comp.lang.tcl
Organization: RetroBBS
Date: Mon, 2 Dec 2024 19:29 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: aldo.w.buratti@gmail.com (abu)
Newsgroups: comp.lang.tcl
Subject: Re: Blend2d Save Option
Date: Mon, 2 Dec 2024 19:29:50 +0000
Organization: RetroBBS
Message-ID: <98a6db0a6db54ec3a5ab87fe5f10e1cc@www.rocksolidbbs.com>
References: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com> <1732701608-153@newsgrouper.org.uk> <27adc9465ac47beba9811eb0c0f8537d@www.novabbs.com> <ec494801e5061bd31ee3d72ddbf9db98@www.rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="968211"; mail-complaints-to="usenet@i2pn2.org";
posting-account="mhL2dbCDs3ShDcZELlal7+PiYLtdY9Pl6XXSzjtYA2c";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: ef37f5a0283145179136b24718ee5b6282d02b5e
X-Rslight-Site: $2y$10$sZq.1MXy6qntLBCv0eIRdOvv1v60ms/oOj8q.zoSd/eT7mJ0UXf.6
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

Correction abut JPG files:
*Blend2d can load JPG files; but it cannot save to JPG.
Anyway, thanks to its ability to exchange read/write tk-photos, you can
save/load any raster images supported by tk-photo (thanks to extensions
like package Img).

Subject: Re: Blend2d Save Option
From: kesavapraba
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Tue, 3 Dec 2024 07:35 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: prabaiitmadras@gmail.com (kesavapraba)
Newsgroups: comp.lang.tcl
Subject: Re: Blend2d Save Option
Date: Tue, 3 Dec 2024 07:35:45 +0000
Organization: novaBBS
Message-ID: <4e90bbc88715ce8541316a7a769cbc6b@www.novabbs.com>
References: <8b70f0165ace4bd9ca5aac9bd861ebda@www.novabbs.com> <1732701608-153@newsgrouper.org.uk> <27adc9465ac47beba9811eb0c0f8537d@www.novabbs.com> <ec494801e5061bd31ee3d72ddbf9db98@www.rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1041063"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ImDDACvhL0NtEwH2R4fpPpO1kQmCtOb4DmhZzmCKEKg";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$0t4TIs4FqpkGiJIm5hpYYODH4OPeEVy/fgQcF8XGQgFVYOBOrsgyy
X-Rslight-Posting-User: 2f58975cceecb71955e701c67a5371a15d1df422
View all headers

Thank you for your nice package and reply, Mr. Abu.

--

1

rocksolid light 0.9.8
clearnet tor