iTextSharp.text.pdf.codec.wmf.MetaDo.IsNullStrokeFill C# (CSharp) Méthode

IsNullStrokeFill() public méthode

public IsNullStrokeFill ( bool isRectangle ) : bool
isRectangle bool
Résultat bool
        public bool IsNullStrokeFill(bool isRectangle)
        {
            MetaPen pen = state.CurrentPen;
            MetaBrush brush = state.CurrentBrush;
            bool noPen = (pen.Style == MetaPen.PS_NULL);
            int style = brush.Style;
            bool isBrush = (style == MetaBrush.BS_SOLID || (style == MetaBrush.BS_HATCHED && state.BackgroundMode == MetaState.OPAQUE));
            bool result = noPen && !isBrush;
            if (!noPen) {
            if (isRectangle)
                state.LineJoinRectangle = cb;
            else
                state.LineJoinPolygon = cb;
            }
            return result;
        }