private FT_Glyph_Transform ( |
||
glyph | ||
matrix | SharpFont.FTMatrix | |
delta | SharpFont.FTVector | |
return | System.Error |
/// <summary> /// Transform a glyph image if its format is scalable. /// </summary> /// <param name="matrix">A pointer to a 2x2 matrix to apply.</param> /// <param name="delta"> /// A pointer to a 2d vector to apply. Coordinates are expressed in 1/64th of a pixel. /// </param> public void Transform(FTMatrix matrix, FTVector delta) { Error err = FT.FT_Glyph_Transform(Reference, ref matrix, ref delta); if (err != Error.Ok) { throw new FreeTypeException(err); } }
/// <summary> /// Transform a glyph image if its format is scalable. /// </summary> /// <param name="matrix">A pointer to a 2x2 matrix to apply.</param> /// <param name="delta"> /// A pointer to a 2d vector to apply. Coordinates are expressed in 1/64th of a pixel. /// </param> public void Transform(FTMatrix matrix, FTVector delta) { if (disposed) { throw new ObjectDisposedException("Glyph", "Cannot access a disposed object."); } Error err = FT.FT_Glyph_Transform(Reference, ref matrix, ref delta); if (err != Error.Ok) { throw new FreeTypeException(err); } }