Editing AddNoiseEffect.cs -- what is ReadOnlySpan<RectangleI>?

10 views
Skip to first unread message

Pablo RS

unread,
Sep 22, 2023, 3:31:55 AM9/22/23
to Pinta Project Mailing List
I wanted to see if I could add a margin to the noise adder, in the overridden Render function it takes a ReadOnlySpan<Rectangle I> type. Where could I find this? I was assuming it was somewhere in Pinta.Core but no idea.

Cameron White

unread,
Sep 22, 2023, 5:02:11 PM9/22/23
to Pablo RS, Pinta Project Mailing List
RectangleI is defined in
https://github.com/PintaProject/Pinta/blob/master/Pinta.Core/Classes/Rectangle.cs,
while ReadonlySpan<T> is a standard type
(https://learn.microsoft.com/en-us/dotnet/api/system.readonlyspan-1?view=net-7.0)
That parameter is providing a list of regions / tiles within the image to render

On Fri, Sep 22, 2023 at 3:31 AM Pablo RS <pablorebor...@gmail.com> wrote:
>
> I wanted to see if I could add a margin to the noise adder, in the overridden Render function it takes a ReadOnlySpan<Rectangle I> type. Where could I find this? I was assuming it was somewhere in Pinta.Core but no idea.
>
> --
> You received this message because you are subscribed to the Google Groups "Pinta Project Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pinta-projec...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pinta-project/c7c27c77-3372-41eb-98ba-611c7841d15bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages