コード例 #1
0
        public async Task PlaceImage(IImageController imageController)
        {
            Height = imageController.Height;
            Width  = imageController.Width;
            imageController.SetImageFormat(ImageFormat.Png);
            ImageSource = imageController.GetBase64Image();
            StateHasChanged();
            await Canvas2DContext.DrawImageAsync(ImageToBeLoaded, 0, 0, Width, Height);

            StateHasChanged();
        }