Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. syntax

syntax

Scheduled Pinned Locked Moved C#
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    messages
    wrote on last edited by
    #1

    Hi everyone which one of these way is correct?why? Matrix m=new Matrix(); Rectangle rect=new Rectangle(0,0,10,10); PointF[] point= { .... }; Warp(point, rect, m, WarpMode.Perspective,0F); or Warp(new PointF[]{....}, new CRect(0,10,10,10), new Matrix(), WarpMode.Perspective,0F);

    L 2 Replies Last reply
    0
    • M messages

      Hi everyone which one of these way is correct?why? Matrix m=new Matrix(); Rectangle rect=new Rectangle(0,0,10,10); PointF[] point= { .... }; Warp(point, rect, m, WarpMode.Perspective,0F); or Warp(new PointF[]{....}, new CRect(0,10,10,10), new Matrix(), WarpMode.Perspective,0F);

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      These are the overloads as defined[^] in the framework;

      GraphicsPath.Warp (PointF[], RectangleF)
      GraphicsPath.Warp (PointF[], RectangleF, Matrix)
      GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode)
      GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode, Single)

      Did that answer your question?

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      M 1 Reply Last reply
      0
      • L Lost User

        These are the overloads as defined[^] in the framework;

        GraphicsPath.Warp (PointF[], RectangleF)
        GraphicsPath.Warp (PointF[], RectangleF, Matrix)
        GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode)
        GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode, Single)

        Did that answer your question?

        Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

        M Offline
        M Offline
        messages
        wrote on last edited by
        #3

        No I didnt, I want to know can I use of this code or not? Warp(new PointF[]{....}, new CRect(0,10,10,10), new Matrix(), WarpMode.Perspective,0F);

        1 Reply Last reply
        0
        • M messages

          Hi everyone which one of these way is correct?why? Matrix m=new Matrix(); Rectangle rect=new Rectangle(0,0,10,10); PointF[] point= { .... }; Warp(point, rect, m, WarpMode.Perspective,0F); or Warp(new PointF[]{....}, new CRect(0,10,10,10), new Matrix(), WarpMode.Perspective,0F);

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          They are both syntactically correct. However, the first option is easier to debug when things start to go wrong.

          One of these days I'm going to think of a really clever signature.

          M 1 Reply Last reply
          0
          • L Lost User

            They are both syntactically correct. However, the first option is easier to debug when things start to go wrong.

            One of these days I'm going to think of a really clever signature.

            M Offline
            M Offline
            messages
            wrote on last edited by
            #5

            Thank you Richard. :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups