evanolds Posted December 5, 2009 Share Posted December 5, 2009 I have this code to resize a surface to a new surface: Surface fitsurf = new Surface(sz.Width, sz.Height); // "surf" is also a Surface fitsurf.FitSurface(ResamplingAlgorithm.SuperSampling, surf); It fails with an ArgumentException when surf is smaller than fitsurf, which looks as though it may be by-design. Is there an argument I can pass, or a different function I can call to work regardless of the dimensions of two surfaces? Quote There are no warranties whatsoever on my plug-ins. Use them at your own risk. You may redistribute them if you'd like, but I'd prefer you just link to the download on my site. Please do not modify and redistribute. Link to comment Share on other sites More sharing options...
pyrochild Posted December 5, 2009 Share Posted December 5, 2009 ResamplingAlgorithm.Bicubic, .Bilinear, and .NearestNeighbor will all work regardless of the dimensions of the Surfaces. Unless one is zero-width or -height, probably. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
Rick Brewster Posted December 5, 2009 Share Posted December 5, 2009 Yeah SuperSampling only works for reduction. 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...
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.