Class TextureFill
Class represents the Texture fill.
Inheritance
System.Object
TextureFill
Assembly: FastReport.Base.dll
Syntax
public class TextureFill : FillBase
Constructors
TextureFill()
Initializes the TextureFill class with default texture.
Declaration
TextureFill(Byte[])
Initializes the TextureFill class with specified image.
Declaration
public TextureFill(byte[] imageBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
imageBytes |
|
TextureFill(Byte[], Int32, Int32, Boolean, WrapMode, Int32, Int32)
Initializes the TextureFill class with specified image.
Declaration
public TextureFill(byte[] imageBytes, int width, int height, bool preserveAspectRatio, WrapMode wrapMode, int imageOffsetX, int imageOffsetY)
Parameters
Type |
Name |
Description |
System.Byte[] |
imageBytes |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Boolean |
preserveAspectRatio |
|
WrapMode |
wrapMode |
|
System.Int32 |
imageOffsetX |
|
System.Int32 |
imageOffsetY |
|
Properties
ImageData
Gets or sets the image data
Declaration
public byte[] ImageData { get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
ImageHeight
Gets or sets the image height
Declaration
public int ImageHeight { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ImageIndex
Gets or sets the image index
Declaration
public int ImageIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ImageOffsetX
Declaration
public int ImageOffsetX { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ImageOffsetY
Declaration
public int ImageOffsetY { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ImageWidth
Gets or sets the image width
Declaration
public int ImageWidth { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
IsTransparent
Declaration
public override bool IsTransparent { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
PreserveAspectRatio
Gets or sets value, indicating that image should preserve aspect ratio
Declaration
public bool PreserveAspectRatio { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
WrapMode
Gets or sets the texture wrap mode
Declaration
public WrapMode WrapMode { get; set; }
Property Value
Type |
Description |
WrapMode |
|
Methods
Clone()
Declaration
public override FillBase Clone()
Returns
Overrides
CreateBrush(RectangleF)
Declaration
public override Brush CreateBrush(RectangleF rect)
Parameters
Type |
Name |
Description |
RectangleF |
rect |
|
Returns
Overrides
CreateBrush(RectangleF, Single, Single)
Declaration
public override Brush CreateBrush(RectangleF rect, float scaleX, float scaleY)
Parameters
Type |
Name |
Description |
RectangleF |
rect |
|
System.Single |
scaleX |
|
System.Single |
scaleY |
|
Returns
Overrides
Deserialize(FRReader, String)
Declaration
public override void Deserialize(FRReader reader, string prefix)
Parameters
Type |
Name |
Description |
FRReader |
reader |
|
System.String |
prefix |
|
Overrides
Draw(FRPaintEventArgs, RectangleF)
Declaration
public override void Draw(FRPaintEventArgs e, RectangleF rect)
Parameters
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
FinalizeComponent()
Declaration
public override void FinalizeComponent()
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
InitializeComponent()
Declaration
public override void InitializeComponent()
Overrides
Serialize(FRWriter, String, FillBase)
Declaration
public override void Serialize(FRWriter writer, string prefix, FillBase fill)
Parameters
Overrides
SetImage(Image)
Declaration
public void SetImage(Image image)
Parameters
Type |
Name |
Description |
Image |
image |
input image
|
SetImageData(Byte[])
Sets image data to imageData
Declaration
public void SetImageData(byte[] data)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
input image data
|