DataJuggler Posted April 25, 2020 Share Posted April 25, 2020 It would save me pulling in a bunch of code. If yes, I have two questions to what is possible. I currently load my PixelDatabase by either a Bitmap, an Image, or a path to an image. Is it possible to access the current layer as an Image or Bitmap, or do I have to loop through the pixels and create an image? Second question is in regards to applying, as it is stands now my component writes to each pixel already if it is effected, and it is pretty efficient using this class called DirectBitmap that bypasses Bitmap.SetPixel due to speed, but I am sure not as efficient as the rectangle multi-threaded approach I just read about in Paint.Net. Is it possible after I apply my query, to take the bitmap that already has all the new pixel values and just apply it to the destination Surface? I don't even know what a Surface is, my guess is it is a layer of some type, but what I am getting at I would prefer not to have to iterate through all the pixels twice, or move code around since I already have an ApplyPixels method. Thanks, I didn't know Paint.Net was extensible until today. Funny as a programmer I can tell I think subconsciously in billable hours, even for my own projects. I always start from scratch and try and build a rounder wheel, or something else that has already been invented. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.