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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Drawing cursor on image !

Drawing cursor on image !

Scheduled Pinned Locked Moved C#
graphicsquestiontutorial
1 Posts 1 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.
  • H Offline
    H Offline
    Hussam Fattahi
    wrote on last edited by
    #1

    one of my posts here was about taking a screen shot. and i get the answer MemoryStream ms = new MemoryStream(); int screenWidth = Screen.GetBounds(new Point(0, 0)).Width; int screenHeight = Screen.GetBounds(new Point(0, 0)).Height; Bitmap screenShot = new Bitmap(screenWidth, screenHeight); Graphics gfx = Graphics.FromImage((Image)screenShot); gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight)); i then tried to draw the cursor on the screenShot image using : Graphics g = System.Drawing.Graphics.FromImage(screenShot); Cursor cur = Cursors.Arrow; // Or = Cursor.Current; cur.Draw(g, new Rectangle(Cursor.Position.X, Cursor.Position.Y, cur.Size.Width, cur.Size.Height)); when using Cursors.Arrow the arrow shap is drawon on the image, but to draw the current cursor i tried Cursor.Current but it dosn't work, it always draw arrow. my question is, how to determine the shape of the cursor and then draw it on the image? thanks in advance Hussam

    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