davidf Posted November 3, 2012 Share Posted November 3, 2012 (edited) Effects > Distort > Seamless Move Note: it turns out this plugin is fairly redundant (see posts below), so feel free to ignore! This is a small plugin to help create seamless images: it lets you scroll an image around, wrapping around the left & right and top & bottom of the image. For an alternative, see the Seamless Texture Maker plugin (which does something similar to this with the "only cut" option, but with no scrolling): http://forums.getpai...?showtopic=4591. The parameters are: Position - drag to change the center of the image. Fine tune X / Y - pixel perfect X and Y adjustment. The CodeLab code is very short: #region UICode Pair<double, double> Amount1 = Pair.Create( 0.0 , 0.0 ); // Position int Amount2 = 0; // [-100,100] Fine tune X int Amount3 = 0; // [-100,100] Fine tune Y #endregion void Render(Surface dst, Surface src, Rectangle rect) { int w = src.Bounds.Width; int h = src.Bounds.Height; int dx = -((int) (Amount1.First * 0.5 * w) + Amount2); int dy = -((int) (Amount1.Second * 0.5 * h) + Amount3); for (int y = rect.Top; y < rect.Bottom; y++) { int ypos = (y + dy) % h; if (ypos < 0) { ypos += h; } for (int x = rect.Left; x < rect.Right; x++) { int xpos = (x + dx) % w; if (xpos < 0) { xpos += w; } dst[x,y] = src[xpos,ypos]; } } } One problem is that there is no obvious way to reset the parameters to all zero when the effect is restarted; it always remembers the parameter values last used, which is not really appropriate for this particular plugin. Anyone know of a way to do this (within either CodeLab or a Visual Studio project)? Download: SeamlessMove.zip Edited November 21, 2012 by davidf Quote Link to comment Share on other sites More sharing options...
nitenurse79 Posted November 3, 2012 Share Posted November 3, 2012 This looks interesting, will have a play around with it thanks for creating. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted November 3, 2012 Share Posted November 3, 2012 Reminds me of http://forums.getpaint.net/index.php?showtopic=2244 only adjustable. Or, is it like the panelling plugin http://forums.getpaint.net/index.php?showtopic=2617 with less options. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
doughty Posted November 3, 2012 Share Posted November 3, 2012 I can get the same look with Rotate/Zoom with Tiling clicked. Quote Link to comment Share on other sites More sharing options...
davidf Posted November 4, 2012 Author Share Posted November 4, 2012 I can get the same look with Rotate/Zoom with Tiling clicked. Ah, I hadn't noticed the Tiling option ... oh, well! Quote Link to comment Share on other sites More sharing options...
davidf Posted November 4, 2012 Author Share Posted November 4, 2012 (edited) Reminds me of http://forums.getpai...?showtopic=2244 only adjustable. Or, is it like the panelling plugin http://forums.getpai...?showtopic=2617 with less options. Hmm! Takes a while to get to know the existing plugins out there ... thanks. Edited November 4, 2012 by davidf Quote Link to comment Share on other sites More sharing options...
BoltBait Posted November 4, 2012 Share Posted November 4, 2012 Well, don't feel bad. I've been around almost from the beginning and even I don't know them all. You might want to download the Plugin Index and do a quick search before starting a plugin. We typically don't mind someone making improvements to existing plugins. But, exact duplicates are somewhat frowned upon. There are some people around here that download EVERY plugin! FWIW, I've been enjoying your plugins so far. I've got my eye on you. You want to tackle something tough? How about a "seam carving" canvas plugin? Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted November 4, 2012 Share Posted November 4, 2012 Here's a primer: http://forums.getpai...p?/topic/25146- and http://forums.getpaint.net/index.php?/topic/25284- Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
davidf Posted November 4, 2012 Author Share Posted November 4, 2012 (edited) FWIW, I've been enjoying your plugins so far. I've got my eye on you. Thanks! You want to tackle something tough? How about a "seam carving" canvas plugin? I'm already on something at the moment ... it's a surprise, though It'll take a few more days (and then another few days to add the extra features I've thought of by then ...) Is there a general area where people post ideas or requests for plugins, by the way? Or is that just mixed in with the other forums? Edited November 4, 2012 by davidf Quote Link to comment Share on other sites More sharing options...
BoltBait Posted November 4, 2012 Share Posted November 4, 2012 Us mods typically move plugin requests to the General Discussion forum. If you want to post plugin ideas, questions about development, and rough versions of plugins, etc. try here: http://forums.getpaint.net/index.php?/forum/17-plugin-developers-central/ Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game 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.