Robot Graffiti Posted March 2 Share Posted March 2 (edited) // Summary: // Gets the source image to use with Direct2D. // // Remarks: // You should only retrieve this image if it will actually be used for rendering, // as it will consume GPU memory once initialized. // This is equivalent to: // this.Environment.Document.Layers[this.Environment.SourceLayerIndex].Image Should I be concerned about this? If I want to pass the current layer into a shader, is this the right way to get it, or is there some other, better way? SrgbToLinearEffect background = new(dc); background.Properties.Input.Set(Environment.SourceImage); Edited March 2 by Robot Graffiti 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.