trickman Posted September 15, 2006 Share Posted September 15, 2006 Would it be possible to create such function in 3.0? Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 15, 2006 Share Posted September 15, 2006 I have absolutely no idea what you're talking about. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
barkbark00 Posted September 15, 2006 Share Posted September 15, 2006 I was gonna say the same thing... Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 like this... http://www.deviantart.com/deviation/38428022/ Quote Link to comment Share on other sites More sharing options...
barkbark00 Posted September 15, 2006 Share Posted September 15, 2006 Do you want to make an animation, or do you just want to stretch pixels? Its easy to strech pixels, just make a selection that is the entire height of the image and only a few pixels wide(between 1-10ish). Then use the "Move Selected Pixels" tool to strech the selection from either the right or left side. Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 it isn't just like that if the image is a free form shape with loads of colors... Quote Link to comment Share on other sites More sharing options...
barkbark00 Posted September 15, 2006 Share Posted September 15, 2006 what is your image? Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 i would post it here, but imageshack is slower than a snail Quote Link to comment Share on other sites More sharing options...
barkbark00 Posted September 15, 2006 Share Posted September 15, 2006 http://www.imagehigh.com/ Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 just forget it... Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 15, 2006 Share Posted September 15, 2006 Paint.NET is not an animation editor ... Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 I don't plan on doing animation... Quote Link to comment Share on other sites More sharing options...
carbonize Posted September 15, 2006 Share Posted September 15, 2006 Get the picture you want to stretch (say half an eye like in the demo). Paste it into an empty image that is wider than it is and align it to the left. Then either: Use square selection box to hilight the right hand side of the pasted image to a width of 1 pixel and use the Move Selection tool to stretch the selected area all the way to the right (as stated above) or Use selection tool to select everythign to the right of the image and 1 pixel width of the right of the image and use motion blur Quote C A R B O N I Z E Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 carbonize, but what if the picture ISN'T rectangular? Quote Link to comment Share on other sites More sharing options...
carbonize Posted September 15, 2006 Share Posted September 15, 2006 Then use the freehand selector and be very very careful lol. Or copy the pic to clipboard and keep pasting it over it's self but moving left 1 pixel each time. Or right etc. Rick I believe what he is after is the kind of drag effect demonstrated in that demonstration. Not animated but static. A bit like OTT motion blur. Quote C A R B O N I Z E Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 yeah that's what I want. Quote Link to comment Share on other sites More sharing options...
Sepcot Posted September 15, 2006 Share Posted September 15, 2006 Try this in the Code Lab... void Render(Surface dst, Surface src, Rectangle rect) { for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { ColorBgra pix = src[0, y]; dst[x, y] = pix; } } } Is that what you were looking for? Quote Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 nope. only the first column of pix's are stretched... Quote Link to comment Share on other sites More sharing options...
Sepcot Posted September 15, 2006 Share Posted September 15, 2006 nope. only the first column of pix's are stretched... That looks like what is being done in the animation... Just change the x-offset to get your desired look. Quote Link to comment Share on other sites More sharing options...
trickman Posted September 15, 2006 Author Share Posted September 15, 2006 but i said i didn't simply wanted that, i want to stretch the last pixel of each row that doesn't have Alpha = 0 Quote Link to comment Share on other sites More sharing options...
entY8 Posted September 15, 2006 Share Posted September 15, 2006 nope. only the first column of pix's are stretched...try this one and modify start to you liking: const int start = 0; void Render(Surface dst, Surface src, Rectangle rect) { for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { if (x < start) { dst[x, y] = src[x, y]; } else { dst[x, y] = src[start, y]; } } } } (boy is my c# bad :?) edit: 2 posts in between :? however... you mean, you want a not-straight starting line for your pixel stretch? edit2: sepcots one below looks nice :wink: Quote Link to comment Share on other sites More sharing options...
Sepcot Posted September 15, 2006 Share Posted September 15, 2006 but i said i didn't simply wanted that, i want to stretch the last pixel of each row that doesn't have Alpha = 0 My bad trickman, is this more of what you are looking for? void Render(Surface dst, Surface src, Rectangle rect) { for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { if (x > 0) dst[x, y] = (0 == src[x,y].A) ? dst[x-1, y] : src[x, y]; } } } Quote Link to comment Share on other sites More sharing options...
carbonize Posted September 15, 2006 Share Posted September 15, 2006 Not sure how the PnD plugins work but I think to get the effect you would have to go along each horizontal row until you find the last pixel that is no transparent (or a specified colour). Then take that colour and fill in the rest of the row using it. Once you've filled in the rest of the row drop down a row and repeat with the next row. and so on and so forth. Might even be easier to go from right to left, keeping count of the number of empty pixels, and then when you find a non-empty pixel get the colour of it and fill in x number of pixels with that colour where x is the number of pixels you've just counted. Quote C A R B O N I Z E Link to comment Share on other sites More sharing options...
barkbark00 Posted September 15, 2006 Share Posted September 15, 2006 you guys should make a plugin that allows you to strech the selection verticaly of horizontaly!! Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
carbonize Posted September 15, 2006 Share Posted September 15, 2006 If there's a page somwhere explaining the variables available to plugins I could try and make one. It's years since I coded anything but I script in PHP and thats pretty similar. Quote C A R B O N I Z E 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.