3 using SiliconStudio.Core;
4 using SiliconStudio.Core.Mathematics;
5 using SiliconStudio.Paradox.UI.Controls;
7 namespace SiliconStudio.
Paradox.UI.Renderers
12 internal class DefaultImageRenderer : ElementRenderer
19 public override void RenderColor(UIElement element, UIRenderingContext context)
21 base.RenderColor(element, context);
24 var imageColor = element.RenderOpacity * Color.White;
26 if(image.Source == null)
29 Batch.DrawImage(image.Source.Texture, image.Source.TextureAlpha, ref image.WorldMatrixInternal, ref image.Source.RegionInternal,
30 ref element.RenderSizeInternal, ref image.Source.BordersInternal, ref imageColor, context.DepthBias,
image.Source.Orientation);
A service registry is a IServiceProvider that provides methods to register and unregister services...
Represents a control that displays an image.
Android.Widget.Orientation Orientation