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

as.double.bitmap & as.integer.bitmap #47

Closed
jwijffels opened this issue Feb 9, 2017 · 3 comments
Closed

as.double.bitmap & as.integer.bitmap #47

jwijffels opened this issue Feb 9, 2017 · 3 comments

Comments

@jwijffels
Copy link
Contributor

jwijffels commented Feb 9, 2017

Question. Why do you divide in as.double.bitmap by 255 and as.integer.bitmap the division is not done?

@jeroen
Copy link
Member

jeroen commented Feb 9, 2017

I think it was a legacy thing in how the R graphics device expects bitmaps.

@jwijffels
Copy link
Contributor Author

But is it the intention to map a Red RGB value of 255 to 1?

@jeroen
Copy link
Member

jeroen commented Aug 4, 2017

Yes, this is the same scale as e.g. png::readPNG().

@jeroen jeroen closed this as completed Aug 4, 2017
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

2 participants