Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixels member doesn't exist #81

Open
beauxq opened this issue Dec 19, 2022 · 0 comments
Open

Pixels member doesn't exist #81

beauxq opened this issue Dec 19, 2022 · 0 comments

Comments

@beauxq
Copy link

beauxq commented Dec 19, 2022

I'm referencing these lines from the readme:

    // Line from P1(1, 2) to P2(30, 40) using the fastest draw line method 
   int[] pixels = writeableBmp.Pixels;

When I write code like that, I get this:

Error CS1061 'WriteableBitmap' does not contain a definition for 'Pixels' and no accessible extension method 'Pixels' accepting a first argument of type 'WriteableBitmap' could be found (are you missing a using directive or an assembly reference?)

How do I access the int array directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant