Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9053195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:22:02+00:00 2026-06-16T13:22:02+00:00

I would like to draw line, just like the graphics API, only that it

  • 0

I would like to draw line, just like the graphics API, only that it will be assembled of chunks of a given texture (“lineChunk.png”)

The chunk would be small to allow rotating it when needed, by the line’s path.

The purpose is to let the user, using mouseMove, create a textured line.

I’ve tried to make it ‘manually’, but when drawing fast, the distance between two point is vast, and therefore there was a need to close the gap using a while loop, which slowed things down significantly.

The ‘graphics.lineBitmapStyle’ wasn’t helpful as well as it doesn’t serve this purpose.

Any suggestions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:22:03+00:00Added an answer on June 16, 2026 at 1:22 pm

    Ok, so the best way is to create a single Bitmap instance of the sample texture, and create another empty Bitmap which will be your canvas.

    Do the regular drill with looping to fill the missing gaps between 2 points, and use Bitmap.Draw to draw in each time the single texture Bitmap after it was transformed of course.

    It works pretty well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just trying to draw a line with JavaScript. I would like it to
I would like to draw a line or bar graph using HTML5 canvas. I
in vb.net i would like to draw a regular line on a form. is
Following problem. I just tried to draw little things with C#. I would like
I would like to draw a separator between two views. I am aware that
I would like to know the easiest way to draw a straight line between
I would like to draw(animate a line) in Raphael to the edge of the
I just started programming in android and I want to draw a line that
I would like to draw text on a canvas using the Canvas.drawText call for
I would like to draw some shapes on a JPanel by overriding paintComponent .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.