GetImageDescription() приватный Метод

private GetImageDescription ( Toolkit toolkit ) : ImageDescription
toolkit Toolkit
Результат Xwt.Backends.ImageDescription
Пример #1
0
        public void DrawImage(Image img, Rectangle srcRect, Rectangle destRect, double alpha)
        {
            if (!img.HasFixedSize)
            {
                throw new InvalidOperationException("Image doesn't have a fixed size");
            }

            var idesc = img.GetImageDescription(ToolkitEngine);

            idesc.Alpha *= alpha;
            handler.DrawImage(Backend, idesc, srcRect, destRect);
        }
Пример #2
0
        public void DrawImage(Image img, double x, double y, double width, double height, double alpha = 1)
        {
            if (width <= 0 || height <= 0)
            {
                return;
            }
            var idesc = img.GetImageDescription(ToolkitEngine);

            idesc.Alpha *= alpha;
            idesc.Size   = new Size(width, height);
            handler.DrawImage(Backend, idesc, x, y);
        }
Пример #3
0
        public void DrawImage(Image img, Rectangle srcRect, Rectangle destRect, double alpha)
        {
            if (!img.HasFixedSize)
                throw new InvalidOperationException ("Image doesn't have a fixed size");

            var idesc = img.GetImageDescription (ToolkitEngine);
            idesc.Alpha *= alpha;
            handler.DrawImage (Backend, idesc, srcRect, destRect);
        }
Пример #4
0
 public void DrawImage(Image img, double x, double y, double width, double height, double alpha = 1)
 {
     if (width <= 0 || height <= 0)
         return;
     var idesc = img.GetImageDescription (ToolkitEngine);
     idesc.Alpha *= alpha;
     idesc.Size = new Size (width, height);
     handler.DrawImage (Backend, idesc, x, y);
 }
Пример #5
0
		public ImagePattern (Image image)
		{
			SetBackend (ToolkitEngine.ImagePatternBackendHandler, ToolkitEngine.ImagePatternBackendHandler.Create (image != null ? image.GetImageDescription (ToolkitEngine) : ImageDescription.Null));
		}
Пример #6
0
 public ImagePattern(Image image)
 {
     SetBackend(ToolkitEngine.ImagePatternBackendHandler, ToolkitEngine.ImagePatternBackendHandler.Create(image != null ? image.GetImageDescription(ToolkitEngine) : ImageDescription.Null));
 }