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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C#
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.
  • A Offline
    A Offline
    AtulRane
    wrote on last edited by
    #1

    [Message Deleted]

    L 1 Reply Last reply
    0
    • A AtulRane

      [Message Deleted]

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

      Point[] points = (Point[])list.ToArray(typeof(Point));

      If you can use .NET 2.0 and higher, then I suggest replacing ArrayList by the typesafe List<T> class, like this:

      List<Point> list = new List<Point>();
      list.Add(new Point(0, 0)); // add some points

      Point[] points = list.ToArray();

      regards

      A 1 Reply Last reply
      0
      • L Lost User

        Point[] points = (Point[])list.ToArray(typeof(Point));

        If you can use .NET 2.0 and higher, then I suggest replacing ArrayList by the typesafe List<T> class, like this:

        List<Point> list = new List<Point>();
        list.Add(new Point(0, 0)); // add some points

        Point[] points = list.ToArray();

        regards

        A Offline
        A Offline
        AtulRane
        wrote on last edited by
        #3

        [Message Deleted]

        L 1 Reply Last reply
        0
        • A AtulRane

          [Message Deleted]

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

          Get a Graphics object from the image, then you can draw with the graphics object:

          Graphics g = Graphics.FromImage(pictureBox1.Image); // image from a picture box, but can be loaded from anywhere
          g.DrawXXX();

          regards

          A 1 Reply Last reply
          0
          • L Lost User

            Get a Graphics object from the image, then you can draw with the graphics object:

            Graphics g = Graphics.FromImage(pictureBox1.Image); // image from a picture box, but can be loaded from anywhere
            g.DrawXXX();

            regards

            A Offline
            A Offline
            AtulRane
            wrote on last edited by
            #5

            Thank's for your Help. Its working.

            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