Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Drawing Splines in Bitmap

Author
Message
Guido Italy
20
Years of Service
User Offline
Joined: 25th Dec 2005
Location:
Posted: 22nd Aug 2010 19:01
Sorry for my english.

Can help me for this :


-1- input dimension of bitmap ( es. 700,500 )
-2- inside bitmap must draw with splines( possibility of changing the thickness )

-3- when is ok paint the bitmap with splines

-4- save this bitmap

Thank
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 22nd Aug 2010 19:29
Yes, when you load an image as a bitmap it changes the current working screen to that bitmap number so you can manipulate the bitmap all you want and save the changes.



Run the above code snip and you won't actually see anything but a blank screen because when the bitmap is created it automatically switches to bitmap #1. Check the directory you ran the code from and you'll see TestImage.png worked fine.

Guido Italy
20
Years of Service
User Offline
Joined: 25th Dec 2005
Location:
Posted: 22nd Aug 2010 19:33
Ok ! ( thank ) ..

but : (?)

-2- inside bitmap must draw with splines( possibility of changing the thickness )

-3- when is ok paint the bitmap with splines
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Aug 2010 01:52 Edited at: 23rd Aug 2010 01:54
You can do any normal 2D operations on the bitmap and save the results or copy it to the main screen.

What do you really mean by "spline"?

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 23rd Aug 2010 15:01
I think he wants to draw Bezier Curves, (Like in Paint? The bendy lines tool), position them, and then when it is positioned ok; to finally draw it to the picture.

Altho I could be wrong, lol

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Aug 2010 17:31
@ =PRoF=:

Ah, that's cool. That's the one tool of Paint Shop Pro I don't use since it's really weird to me. I can never figure out when it's going to complete the line and fill the area.


@ Guido Italy:

If it is as =PRoF= says it is possible but you'll probably want to switch the current working screen from bitmap 1 to the main screen (bitmap 0). Just so you can position the boxes and see the mouse before you complete the line.

Guido Italy
20
Years of Service
User Offline
Joined: 25th Dec 2005
Location:
Posted: 23rd Aug 2010 21:45
Yes !

Can someone help me ?

Login to post a reply

Server time is: 2026-07-23 12:10:34
Your offset time is: 2026-07-23 12:10:34