public IImageComponent ToItem(AGSSerializationContext context) { AGSHasImage image = new AGSHasImage(); AGSImageComponent container = new AGSImageComponent(image, context.Factory.Graphics); ToItem(context, container); return(container); }
public IImageComponent ToItem(AGSSerializationContext context) { AGSHasImage image = new AGSHasImage(); var container = context.Resolver.Container; AGSImageComponent imageComponent = new AGSImageComponent(image, context.Factory.Graphics, container.Resolve <IRenderPipeline>(), container.Resolve <IGLTextureRenderer>(), container.Resolve <ITextureCache>(), container.Resolve <ITextureFactory>()); ToItem(context, imageComponent); return(imageComponent); }