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.

Dark GDK / Painting using Sprites / Images

Author
Message
haliop
User Banned
Posted: 11th Jan 2009 16:06
hi all again ..
in my project , i want a certain area to paint on a bitmap / image.

i wonder what is a nice way to do it using tools.
tools in this case are the Sprites, so if i have a wall and i want one brick to be darken or just paint something on that wall, ive made some textures which i dbLoadImage("",10) using a Sprite
and SpriteOffSet placing that image i just loaded into XY position which are the MouseX , and MouseY , so i get a Pain Tool using sprites i have created.. long explantion for 2 rows.. '

well my question is , how do i save the image connected to the Drawing Sprite , on another bitmap , so i could paint and save my work

i think its something with dbCopyImage but i'm not sure..

ty for your time
Chamill
16
Years of Service
User Offline
Joined: 29th Sep 2008
Location:
Posted: 11th Jan 2009 16:50
Perhaps dbGetImage?

ex.

dbSprite() all of your images..
dbGetImage( whateverID , startx , starty , endx , endy )

Not quite sure, but you maybe have to use a bitmap for making getimage work .. Just try either ways

Chamillion

You can only get smarter by facing a smarter opponent.
haliop
User Banned
Posted: 11th Jan 2009 18:28
i'm sorry but i don't understand...

can you explain again?

i want my Sprites to be like in PhotoShop , making them as brushes
then painting them on a bitmap then saving what i have done
with Getimage , saveimage..

what you wrote dosen't make any sense to me..
haliop
User Banned
Posted: 11th Jan 2009 18:43
ok i have found the solution

dbPasteImage inside a bitmap

ty chamill
Chamill
16
Years of Service
User Offline
Joined: 29th Sep 2008
Location:
Posted: 11th Jan 2009 19:13
Hah np ..

Looks like i've got to train on explaining, should shut up maybe

Chamillion

You can only get smarter by facing a smarter opponent.

Login to post a reply

Server time is: 2024-11-25 11:44:32
Your offset time is: 2024-11-25 11:44:32