tannerhelland / PhotoDemon

A free portable photo editor focused on pro-grade features, high performance, and maximum usability.
https://photodemon.org
Other
1.38k stars 201 forks source link

Snapping support (via new `View > Snap` menu) #554

Closed tannerhelland closed 5 months ago

tannerhelland commented 5 months ago

Relates to #498, #539, #532, possibly others. Thank you to everyone who suggested this feature.

PhotoDemon can now automagically "snap" objects to common targets. Which targets are used for snapping can be set in the View > Snap to menu. Current options include canvas bounds, layers, and centerlines (e.g. the center of the document and layers). A master menu item (and associated hotkey) can quickly enable/disable all snapping behavior, if required.

The Tools > Options < Interface panel lets you set snap distance (in screen pixels, not image pixels - same as Photoshop). The current default is 8 screen pixels, which is the same as other photo editors.

Next up: I want to add an option to "view smart guides" (probably named something else in the final build). Photoshop uses this feature to show you which boundary is being snapped, as snapping can become confusing on images with many layers.