I suspect the issue might be that the image isn't loaded yet when you create the pattern. For the WebGL sample, I had to do something like this:

1
2
3
4
5
Img []
|>! OnLoad (fun img ->
    (* do the rendering here *))
|>! fun img -> img.Append(Src "/image.png") // Load the image after setting the callback
                                            // so we're sure it won't load in the meantime
By on 4/14/2013 7:24 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper