[Scilab-users] pixel level programming
Jean-Philippe Grivet
jean-philippe.grivet at wanadoo.fr
Wed Apr 18 16:09:27 CEST 2018
Thank you ¨M: I'll try that.
JP Grivet
Le 17/04/2018 à 17:52, P M a écrit :
> Hi Grivet,
>
> weather...yes it is
>
> how.......if you know:
>
> - the pixel coordinate of the pixel you want to manipulate and
> - how to work with colormap ...
>
> you should be able to manipulate a single pixel
>
> For a start I suggest you understand how Matplot() works.
> This is used in IPD to draw the image, when the ShowImage() command is
> used.
>
> simple Example:
>
> img = ones(100,100) * 256; // white image with sioze of 100 x
> 100 px
> ShowImage(img, "white image");
> img(50,50) = 0; // set a single pixel to zero
> (= black)
> ShowImage(img, "white image with one single black pixel");
>
> Hth,
> Philipp
>
>
>
>
> 2018-04-16 12:53 GMT+02:00 Jean-Philippe Grivet
> <jean-philippe.grivet at wanadoo.fr
> <mailto:jean-philippe.grivet at wanadoo.fr>>:
>
> Hello,
>
> I would like to know whether and how it is possible to program
> individual pixels within a Scilab figure ? I have in mind a simple
> application: a disk moves inside a bounded region and changes the
> colour of every pixel it sweeps over. Thanks for your hints.
>
> JP Grivet
>
>
>
> ---
> L'absence de virus dans ce courrier électronique a été vérifiée
> par le logiciel antivirus Avast.
> https://www.avast.com/antivirus <https://www.avast.com/antivirus>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org <mailto:users at lists.scilab.org>
> http://lists.scilab.org/mailman/listinfo/users
> <http://lists.scilab.org/mailman/listinfo/users>
>
>
>
>
> --
> In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.
>
> There we have the salad.
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180418/a2daa472/attachment.htm>
More information about the users
mailing list