midora Posted April 18, 2015 Share Posted April 18, 2015 (edited) Released. See Spirit Level Photo Effect --- OK there are several methods to rotate an image in Paint.NET. But the tool I missed always is the the spirit level. This tool works in the way that you put your spirit level (represented by a line) on the image and the image will be rotated so that the spirit level is horizontal. The Api does not allow us to add tools so the solution is using a tools effect. So just to see if you understand and accept the UI here is Near to release a version for people who like to add/complete a translation Edited May 16, 2015 by midora 5 Quote Link to comment Share on other sites More sharing options...
Oceana Posted April 18, 2015 Share Posted April 18, 2015 Useful tool. Thank you kindly Quote Link to comment Share on other sites More sharing options...
midora Posted April 19, 2015 Author Share Posted April 19, 2015 Useful tool. Thank you kindly I just needed it last week several times. So I updated some older code to my current toolbox. And it^s best for a developer if the output is usefull for others too. I'm still thinking about to rotate the imagge in the plugin canvas already. Maybe I^m adding a switch to support this. Quote Link to comment Share on other sites More sharing options...
Seerose Posted April 20, 2015 Share Posted April 20, 2015 @MIDORA! Thank you so much. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
midora Posted April 20, 2015 Author Share Posted April 20, 2015 I guess we will never be out of level in the future with the amount of leveling plugins now ;-) 0.3 (20.4.2015)- Distinguishes between horizontal and vertical leveling. If the angle of the line you have drawn is less than +/- 45 degrees compared to a horizontal line then a horizontal leveling will be done else a vertical one.- Attached more entries to the menu and more controls to the canvas to make zooming and moving of the canvas content easier. Most keys have the same meaning as in Paint.NET. There is one special extension. Using the mouse wheel while the right mouse button is pressed zooms the image. So there is no need to keep the control key pressed. Zoom center in the image is at the mouse position. Starting the zoom will move the mouse and the zoom center of the image to the center of the canvas.- Moved to Effects->Photo as proposed by BoltBait- Remake provided a first basic translation for Russian, thanks Quote Link to comment Share on other sites More sharing options...
BoltBait Posted April 20, 2015 Share Posted April 20, 2015 I guess we will never be out of level in the future with the amount of leveling plugins now ;-) Mine should only tide people over until yours is finished. Thanks for the inspiration. Yours is looking great so far! Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
midora Posted April 20, 2015 Author Share Posted April 20, 2015 Maybe Rick could add such a tool to the toolbar in the future. This would make all these plugins obsolete. Quote Link to comment Share on other sites More sharing options...
midora Posted April 20, 2015 Author Share Posted April 20, 2015 Back to the question if the plugin should show the rotation in the pugin canvas immediately after drawing the reference line. Here an example of drawing the line at the center axis of the tower. The image and the line rotates and the line will be vertical. Quote Link to comment Share on other sites More sharing options...
midora Posted April 21, 2015 Author Share Posted April 21, 2015 Update 0.4 (21.4.2015)- The preview excutes the rotation immediately and adapts the position of the line. The border of the rotated image is not anti-aliased and may be one pixel off because of restrictions in GDI+. This should not happen in the final image.- Added Menu->Edit->Autoscale feature with the modes: Off, Scale In (default), and Scale Out. Autoscaling modes allow you to define how the rotated image will be cropped. - Scale In will increase the image content automatically after rotation so that there are no empty pixels visible. - Scale Out will shrink the image content so that no detail of the immage is lost with the disadvantage of empty pixels.- Copy to clipboard copies the rotated image unscaled and uncutted. This way you have access to the rotated image in the new size. This functionality is not possible via the standard plugin interface which does not allow to change the size of a layer. 1 Quote Link to comment Share on other sites More sharing options...
midora Posted April 23, 2015 Author Share Posted April 23, 2015 A more toolstrip like version. Update v0.5 (23.4.2015)- Ctrl-R can be used to toggle between Auto Scale modes- Improved clipboard handling for large images- Added a toolbar containing the options specific to the Spirit Level tool- The Spirit Level line can be dragged to another location to verify that it matches an other object. Dragging the line does not change the angle. 1 Quote Link to comment Share on other sites More sharing options...
midora Posted April 24, 2015 Author Share Posted April 24, 2015 What do you think, should there be a simular tool to correct converging verticales by placing two lines on the image? This would be a perspective correction and not a rotation. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted April 24, 2015 Share Posted April 24, 2015 What do you think, should there be a simular tool to correct converging verticales by placing two lines on the image? This would be a perspective correction and not a rotation. This has been done before. Of course, there is always room for improvement. http://forums.getpaint.net/index.php?showtopic=16197 Enjoy. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
midora Posted April 24, 2015 Author Share Posted April 24, 2015 Yeah I know, there are several plugins to do perspective transformations. But I'm talking about a complete different UI. More like a specialized grid warp. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted April 24, 2015 Share Posted April 24, 2015 I would encourage you to add it to your plugin. That's why I said that there's always room for improvement. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
midora Posted April 28, 2015 Author Share Posted April 28, 2015 I would encourage you to add it to your plugin. That's why I said that there's always room for improvement. I got it ;-) The realtime handling is a little bit more complex and much slower than a simple rotate but let's see. Quote Link to comment Share on other sites More sharing options...
midora Posted April 28, 2015 Author Share Posted April 28, 2015 Update 0.6 (28.4.2015)- Added 'Copy rotated image' command button to the tool strip.- Added rulers (Toggle with Alt+Shift+R).- Added guides (Toggle with Alt+Shift+G). Click inside of a ruler to create a new guide. Drag the guide inside of the ruler to set a new position. Drag the guide out of the ruler to remove it. Quote Link to comment Share on other sites More sharing options...
midora Posted May 5, 2015 Author Share Posted May 5, 2015 Update 0.7 (5.5.2015) Canvas improvements- Single click will no longer reset the rotation use double click now.- Most of the UI parts can now be switched on and off via menu or shortcut keys. ALT+SHIFT +M: Menu bar, +T: Tool bar, +S: Status bar, +N: Narrow look +R: Rulers, +D: Scrollbars, +G: Guides, +P: Pixel grid, +B: Image border +U: Toggle unit, +Z: Toggle zoom modes- All zoom, align, and scroll commands in the canvas can be done with shortcuts. (see menu entries)- Window commands with shortcuts: Fullscreen mode (ALT+Enter), Restore (Alt+Back), Maximize (ALT+F2), Minimize (ALT+F3)- Mouse wheel scrolls the canvas vertically. Tilting the wheel scrolls horizontal. Mouse wheel with pressed right mouse button (or control key) zooms the content of the view. Keep Middle mouse button pressed to pan the image in canvas. Double click with the middle button centers.- The UI configuration will be saved and restored.- Fixed additional HighDPI issues (i.e. cursor size in rulers).- Touch support: One finger Tap and drag to create line or to select points or line to drag them. Two finger pan is not restricted to horizontal or vertical gutter. Two finger zoom allows you to zoom and to move the drag center. Two finger tap toggles between 'Standard zoom (100%)' and 'Zoom and lock to view' Two finger rotate is not used in this derivation of the canvas. 1 Quote Link to comment Share on other sites More sharing options...
Seerose Posted May 5, 2015 Share Posted May 5, 2015 @midora! This is a awesome plugin. Many thanks for your hard work. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
midora Posted May 6, 2015 Author Share Posted May 6, 2015 @midora! This is a awesome plugin. Many thanks for your hard work. Hi Seerose thanks that you are always so nice to the developers here. We appreciate. Quote Link to comment Share on other sites More sharing options...
Seerose Posted May 7, 2015 Share Posted May 7, 2015 (edited) Hi Seerose thanks that you are always so nice to the developers here. We appreciate. @midora! With your hard work and technique exists paint.net. Without plugins writer our hands tied. God bless you all. Edited May 7, 2015 by Seerose Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
Seerose Posted May 8, 2015 Share Posted May 8, 2015 3 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
midora Posted May 8, 2015 Author Share Posted May 8, 2015 Wow looks like a lot of hand work done in this piece. Hope we can do these things easier in the future. 1 Quote Link to comment Share on other sites More sharing options...
midora Posted May 10, 2015 Author Share Posted May 10, 2015 Update 0.8 (10.5.2015)- Added Padding Modes: Transparent, Primary, Secondary, Keep, and Mirror Defines how uncovered areas will be filled if the auto scale mode is not 'In'- Fixed the missing checkerboard background- Fixed issue with some keyboard layouts Quote Link to comment Share on other sites More sharing options...
midora Posted May 11, 2015 Author Share Posted May 11, 2015 (edited) Overview scaling and padding modes Auto scale: Scale In; Padding Mode: Transparent and Mirror (no difference) Auto scale: Off; Padding Mode: Transparent and Mirror Auto scale: Scale Out; Padding Mode: Transparent and Mirror Edited May 11, 2015 by midora 3 Quote Link to comment Share on other sites More sharing options...
Seerose Posted May 11, 2015 Share Posted May 11, 2015 @midora! Thanks so much for the new version. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.