A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: filling one pixel

Hybrid View

  1. #1
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474

    filling one pixel

    Hi, does anyone know a way I could use the graphics method to fill only one pixel on the screen with a solid color?

    For example, if I wanted to fill pixel (100, 100) and make it green, how would I do this or is it even possible?

    All the graphics functions seem to only be able to work if you give it two seperate points, but I just want to fill one.

    Any help appreciated.
    BC

  2. #2
    5+5=55 Schfifty Five's Avatar
    Join Date
    Jun 2006
    Posts
    698
    You could use either:

    _root.moveTo(100,100);
    _root.lineTo(100,100);

    or make a new bitmapData object and set a single pixel of that using setPixel();.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center