Jul 25, 2014, 10:43 PM
[CLOSED] Mask on adding / refreshing a sprite to a DrawComponent
Hi,
It there a way to set a mask when a sprite is added to a drawcomponent?
In a website I want a sprite to be filled with an image which is created on the fly. The image is used as a kind of background image for other sprites. The image is created in a handler.
Loading works fine but when the image becomes a bit more complex the creation takes more time. During this time I would like to show a mask.
Hans
It there a way to set a mask when a sprite is added to a drawcomponent?
In a website I want a sprite to be filled with an image which is created on the fly. The image is used as a kind of background image for other sprites. The image is created in a handler.
Loading works fine but when the image becomes a bit more complex the creation takes more time. During this time I would like to show a mask.
Dim sprite As Sprite = New Sprite
sprite.SpriteID = "uniquename"
sprite.Type = SpriteType.Image
sprite.Width = 400
sprite.Height = 400
sprite.Src = "ImageHandler.ashx?test=123456"
drawComponentImage.Add(sprite)
sprite.Show(True)
I cannot find any mask setting with a DrawComponent or a Sprite. Do you have a sugestion?Hans