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

Documentation for ImageRep should describe platform dependent RGB order #184

Closed
thomthom opened this issue Dec 12, 2018 · 0 comments
Closed

Comments

@thomthom
Copy link
Member

Reference thread:
https://forums.sketchup.com/t/encode-rgba-color-to-24-bits-imagerep/83139

https://github.com/thomthom/bitmap-2-mesh/blob/master/src/tt_bitmap2mesh/helpers/image_rep.rb#L22-L30

SketchUpAPI expects the channels to be in different orders on
Windows vs. Mac OS. Bitmap data is exposed in BGRA and RGBA byte
orders on Windows and Mac OS, respectively.

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

No branches or pull requests

2 participants