Browse Source

fpvectorial: adds an entity to contain raster images

git-svn-id: trunk@17794 -
sekelsenmat 14 years ago
parent
commit
2441911aa7
1 changed files with 17 additions and 0 deletions
  1. 17 0
      packages/fpvectorial/src/fpvectorial.pas

+ 17 - 0
packages/fpvectorial/src/fpvectorial.pas

@@ -227,6 +227,23 @@ type
     BaseLeft, BaseRight, DimensionLeft, DimensionRight: T3DPoint;
     BaseLeft, BaseRight, DimensionLeft, DimensionRight: T3DPoint;
   end;
   end;
 
 
+  {@@
+   Vectorial images can contain raster images inside them and this entity
+   represents this.
+
+   If the Width and Height differ from the same data in the image, then
+   the raster image will be stretched.
+
+   Note that TFPCustomImage does not implement a storage, so the property
+   RasterImage should be filled with either a FPImage.TFPMemoryImage or with
+   a TLazIntfImage. The property RasterImage might be nil.
+  }
+  TvRasterImage = class(TvEntity)
+  public
+    RasterImage: TFPCustomImage;
+    Top, Left, Width, Height: Double;
+  end;
+
 type
 type
 
 
   TvCustomVectorialWriter = class;
   TvCustomVectorialWriter = class;