# Drwaing board to image file

**URL:** <https://forum.kirupa.com/t/drwaing-board-to-image-file/38650>\
**Category:** Uncategorized\
**Created:** [December 27, 2003, 5:19pm UTC](https://forum.kirupa.com/t/drwaing-board-to-image-file/38650 "2003-12-27T17:19:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amaze](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@amaze](https://forum.kirupa.com/u/amaze)\
**Post date:** [December 27, 2003, 5:19pm UTC](https://forum.kirupa.com/t/drwaing-board-to-image-file/38650/1 "2003-12-27T17:19:11Z")

</div>

Hi all!

I’ve made a drawing board in Flash MX and I want to create an image file after finished drawing(save image).  
Is there a way to get the RGB values for each pixel of the board and then send them to a “binary code” file to create the .jpg?

Excuse my english. I’m a 23yrs old greek web designer.  
New to AS too…

Thank you all in advance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2003, 5:32pm UTC](https://forum.kirupa.com/t/drwaing-board-to-image-file/38650/2 "2003-12-27T17:32:29Z")

</div>

[http://www.f-mod.com/?p=2](http://www.f-mod.com/?p=2)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2003, 5:45pm UTC](https://forum.kirupa.com/t/drwaing-board-to-image-file/38650/3 "2003-12-27T17:45:03Z")

</div>

I’ve already read your old post, ahmed, and you are the one that gave me the idea to use arrays to get the binaries.  
When i 1st visited that site I didnt see any AS getting the RGB values.  
Only PHP and C++.  
The board I made is on a ColdFusion server so I only want the AS to read the RGB values.

I hope that this wasn’t to complicated…  
thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2003, 5:53pm UTC](https://forum.kirupa.com/t/drwaing-board-to-image-file/38650/4 "2003-12-27T17:53:43Z")

</div>

well, what I did was basically log \_xmouse and \_ymouse values in two separate arrays, convert the arrays to strings, and then send them to a php script where they were saved in mySQL. To view the image, I retrieved the coordinates and plotted them using the lineTo and moveTo functions

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2003, 6:55pm UTC](https://forum.kirupa.com/t/drwaing-board-to-image-file/38650/5 "2003-12-27T18:55:41Z")

</div>

I guess that this couldn’t work for me because i use different sizes ans shapes of brushes,backgrounds too, so loging the mouse position won’t help.

What I need is to “read” all the pixels of the board (after the draw is done) and translate them to binary.

Thank you for your time.
