[Scilab-users] pixel level programming
P M
p.muehlmann at gmail.com
Tue Apr 17 17:52:56 CEST 2018
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>:
> 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
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.
There we have the salad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180417/8120659e/attachment.htm>
More information about the users
mailing list