iTextSharp.text.pdf.PdfAnnotation.PdfImportedLink.TransformDestination C# (CSharp) Метод

TransformDestination() публичный Метод

public TransformDestination ( float a, float b, float c, float d, float e, float f ) : void
a float
b float
c float
d float
e float
f float
Результат void
            public void TransformDestination(float a, float b, float c, float d, float e, float f)
            {
                if (!IsInternal()) throw new ArgumentException(MessageLocalization.GetComposedMessage("cannot.change.destination.of.external.link"));
                if (destination.GetAsName(1).Equals(PdfName.XYZ)) {
                    float x = destination.GetAsNumber(2).FloatValue;
                    float y = destination.GetAsNumber(3).FloatValue;
                    float xx = x * a + y * c + e;
                    float yy = x * b + y * d + f;
                    destination.ArrayList[2] = new PdfNumber(xx);
                    destination.ArrayList[3] = new PdfNumber(yy);
                }
            }