The straight-forward way to create a Picture using a bitmap file in memory (usually generated at runtime) is to use the Picture.this(DStream) constructor. However, this doesn't work due to some code in dfl.internal.com.DStreamToIStream.Read(): the code uses stm.input.read(...) instead of just stm.read(...). The bug is caused by the fact that the tango.io.Buffer.Buffer.this(void[] data) constructor doesn't initialize the "source" field, which causes the "input" getter used in the aforementioned code to return "null" and cause an access violation in DFL code.
Solution: replace stm.input.read with stm.read in abovementioned and other similar code.