# Pixel Editor for Images

**URL:** <https://community.wolfram.com/t/pixel-editor-for-images/11974>\
**Category:** Ideas\
**Tags:** image-processing, software-development, interface-construction, ui-ux-and-ide\
**Created:** [February 16, 2018, 4:29am UTC](https://community.wolfram.com/t/pixel-editor-for-images/11974 "2018-02-16T04:29:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevind](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kevind/32/9585_2.png) [@kevind](https://community.wolfram.com/u/kevind)\
**Post date:** [February 16, 2018, 4:29am UTC](https://community.wolfram.com/t/pixel-editor-for-images/11974/1 "2018-02-16T04:29:47Z")

</div>

Often I would edit bitmaps in programs like MS Paint and then import them back into my notebook. To save time I developed a tool to edit the pixels of an image within a notebook: Wolfram Paint.

 ![WLPaint.PNG](https://global.discourse-cdn.com/wolfram/original/3X/f/9/f93c31019899a31828e1973be1691e78aeece8ee.png)

* * *

Features include:

- Three tools: pen (single pixel change), bucket (change all identical pixel groups), and eye drop (get pixel color)
- Mouse down uses primary color, `Control` + mouse uses secondary color
- Editable “favorite” colors panel
- [`DominantColors`](http://reference.wolfram.com/language/ref/DominantColors.html) automatically loaded as “favorites”
- Uses RGBA color space
- Resizable image, inset, and zoom
- “Undo” to a state that you first manually bookmark
- click-and-drag moves the zoomed region (left panel) or edits pixels (right panel)

I’m sure I could mimic other tools like drawing lines, circles, or other primitives, but as a proof-of-concept I’m pleased that it was only 300 lines of code.
