Petr Kobalicek
Petr Kobalicek
Disabling JIT is experimental, it would not work for most cases, you should test with JIT on x86/amd64 ISAs
I'm not sure I understand the problem though. Blend2D uses premultiplied pixels - this means that each component is multiplied with alpha. If alpha is zero, all components are zero...
Blend2D is endian dependent - 32-bit RGBA format is `[R
You have missed a very important line: ```c++ if (BL_BYTE_ORDER_NATIVE == BL_BYTE_ORDER_LE) pngFmt.flags |= BL_FORMAT_FLAG_BYTE_SWAP; ``` This ensures that the components are properly swapped depending on endianness.
True, this is not implemented, at the moment what you get is stretch behavior. I think we have opened this topic on gitter once but haven't reached any agreement on...
Or maybe this could be even better: - https://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute
At the moment A8 represents an alpha-only format (mask), not an arbitrary single-channel format. The problem with BMP is that it most likely doesn't support such format, so Blend2D stores...
At the moment if you want to save to a gray BMP you would have to construct it yourself. I think there could be some option that would force A8...
I think the construct is acceptable considering it uses a standard C++11 capabilities instead of using compiler-specific intrinsics, which are much uglier to use. And I think compilers are okay...
Hello, this feature is unfortunately still under active development. It was not part of beta release due to difficulty, but it's being worked on and will be part of Blend2D...