Hi,
I'm using the raster component to display a slideshow. I would like to be able to display debug information during the slideshow which I can show and hide with a keypress. I have implemented this just using a .net label control but it looks a bit messy and doesn't paint well during the transitions.
I have looked at the Draw3dText method and I can get text to display either before or after a transition but not during. I have also had a brief look into the annotations class but I'm not sure I'm looking in the write direction with this and if I am then it looks like I'd have a lot of learning to do before I achieved my goal.
The code I am using to do the transitions is:
'dispose of the image if its not nothing
If Not m_objRasterImage Is Nothing Then
m_objRasterImage.Dispose()
End If
'load the image to display
m_objRasterImage = m_objRasterCodecs.Load(strPathAndFilename)
'set the raster operation
objRasterPaintProperties.RasterOperation = RasterPaintProperties.SourceCopy
'transition in the image
m_objSpecialEffectsProcessor.PaintImage(objGraphics, m_objRasterImage, Rectangle.Empty, Rectangle.Empty, objClientRectangle, objClientRectangle, objSpecialEffectsType, lngEffectGrain, lngEffectDelay, 0, 0, 1, 1, False, Color.Empty, 0, Color.Empty, objRasterPaintProperties, Nothing)
'dispose of the graphics object cos the transition is complete
objGraphics.Dispose()
Is there any way that I could add some black text in a white rectangle (rectangle to auto size to size of text if possible) in the bottom right corner of an image on the fly so that the text is included in the transition?
Thanks for your time in advance
Keith
PS. It would be great if there was a command as simple as m_objRasterImage.AddText ;-)