[Scilab-Dev] Re: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example

Clément DAVID clement.david at scilab-enterprises.com
Mon Jun 11 14:53:58 CEST 2012


Hello,

Step by step for a MY_BLOCK block:
   * use inkscape to draw an icon
   * save it to images/svg/MY_BLOCK.svg
   * Drag an drop your block into a diagram
   * check that your icon render well
   * File->Export to png and save it to images/gif/MY_BLOCK.png

That's all.

Le 11/06/2012 13:45, Sumeet a écrit :
> You could have a look at the dspblock project that I'm working on here:
> http://forge.scilab.org/index.php/p/dspblock/source/tree/master/
>
> I create images in the images / svg folder using inkscape, and the
> following code in etc / dspblock.start somehow takes care of the rest. I
> haven't tried exploring how xcosPalAddBlock works.
>
> 39
> <http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L39>
> h5Files = gsort(ls(root_tlbx + "/images/h5/*.sod"));
> 40
> <http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L40>
> gifFiles = gsort(ls(root_tlbx + "/images/gif/*." + ["png" "jpg" "gif"]));␊
> 41
> <http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L41>
> svgFiles = gsort(ls(root_tlbx + "/images/svg/*." + ["svg" "png" "jpg"
> "gif"]));
> 42
> <http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L42>
>
> 43
> <http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L43>
> for i=1:size(h5Files, "*")
> 44
> <http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L44>
> pal = xcosPalAddBlock(pal, h5Files(i), gifFiles(i), svgFiles(i));
> 45
> <http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L45>
> end
>
>
> On Mon, Jun 11, 2012 at 7:24 AM, hehiha <dungnguyenbk at gmail.com
> <mailto:dungnguyenbk at gmail.com>> wrote:
>
>     I have problem same you.
>     Show I don't know what's tool to draw image same.
>      > [1]:
>      >
>     http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/blocks/CSCOPXY.svg
>      > [2]:
>      >
>     http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/palettes/CSCOPXY.png
>
>     I try to draw by scilab. But it's difficult to drawn.
>     Could you tell me method to draw icon for block step by step?
>
>
>     --
>     View this message in context:
>     http://mailinglists.scilab.org/Issue-with-the-palette-in-an-Xcos-toolbox-based-on-the-Xcos-skeleton-example-tp3876681p4024331.html
>     Sent from the Scilab developers - Mailing Lists Archives mailing
>     list archive at Nabble.com.
>
>     --
>     To unsubscribe from this mailing-list, please send an empty mail to
>     dev-unsubscribe at lists.scilab.org
>     <mailto:dev-unsubscribe at lists.scilab.org>
>     To check the archives of this mailing list, see
>     http://mailinglists.scilab.org/
>
>


-- 
Clément DAVID
Scilab Enterprises
skype://clement_david_scilab



More information about the dev mailing list