Jump to content

Getting the pixels of all layers


z0r

Recommended Posts

Is it possible to get the color of a pixel as a function from all layers in an effect plugin?

Yes I can merge the image and apply an effect. But it's not want I want.

The reason is why I want to know this is also a reason that will probably violate the rules:

I was thinking (not sure if I want to make it yet) on extracting all pixels of the 'final' rendering to send to an other program. For real-time display purposes - a 3D mesh rendered in real-time.

I know will not give Paint.NET any support now and in the future to allow for a real time 3D rendering/painting because it's not the goal.

Link to comment
Share on other sites

Is it possible to get the color of a pixel as a function from all layers in an effect plugin?

No.

The reason is why I want to know this is also a reason that will probably violate the rules:

I was thinking (not sure if I want to make it yet) on extracting all pixels of the 'final' rendering to send to an other program. For real-time display purposes - a 3D mesh rendered in real-time.

I'm not sure what you mean, but what I think you mean (doing the rendering in another program) isn't against the rules.

I know will not give Paint.NET any support now and in the future to allow for a real time 3D rendering/painting because it's not the goal.

Sounds like Shape3D.

KaHuc.png
Link to comment
Share on other sites

Is it possible to get the color of a pixel as a function from all layers

Yes.

...in an effect plugin?

No.

You can do this in a filetype plugin but not in an effect plugin.

Rick is considering allowing us effect developers access to the other layers (and more really cool stuff) in a future version of the effect engine. But, it's still in the planning stages at this point, so don't hold your breath waiting for this.

Link to comment
Share on other sites

There should be a "virtual, summary" layer that will show the whole image (with all the layers merged) in one "virtual" layer.

I know that this is stupid, but maybe this idea could help You think of other features to PDN. :-)

Apple rules. Microsoft rules. Paint.Net rules. God Bless America.

Link to comment
Share on other sites

  • 3 weeks later...

On a similar note I was wondering what my options are if I want to manipulate layer pixels at close to realtime speeds... Perhaps I should explain:

I am doing imaging of samples from a microscope. Data from my hardware comes in as intensity values which can be either int32 of double (depending on the detector and the C# code responsible for HW interaction). Images are acquired in multiple color channels/detector channels (for instance using an optical camera and an IR camera on the same sample or something similar. Images are typically no bigger than 512 by 512 pixels and one pixel is typically acquired every milisecond, just to give an idea.

Right now I have my own application in C# to do this imaging with a very crude file format for data storage. However, I was thinking that it might be cool to offer the option of saving the image data directly to Pdn or to create a plugin that could channel the data to Pdn somehow, preferably in real time as data comes in. Most of my data needs to be post processed in a paint program anyway to prepare it for reports, publications, ...

Would this be feasible?

I guess it comes down to the question if

public ColorBgra this[int x, int y]

public ColorBgra this[Point pt]

of Surface offer good enough performance and if the rendering process in Pdn is fast enough...

Can anybody shed some light?

Link to comment
Share on other sites

There should be a "virtual, summary" layer that will show the whole image (with all the layers merged)

...that's called the screen.

People in my office were looking at me funny because I just erupted in laughter at your comment. Well played!

 

Take responsibility for your own intelligence. 😉 -Rick Brewster

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...