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 / Don't think I'm having much luck!? :)

Author
Message
SpecTre1
23
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 9th May 2003 19:45
Right this colouring book is coming along a treat now but.........

Theres always a bloody but!!!

I have done a test screen to colour in .bmp, it uses 2 colours black and white and is drawn in Paint Shop Pro.

When it is saved it is a proper line drawing, I load it in and copy it using the Copy Bitmap area command to screen 0 where my interface is.

For some reason it never looks a crisp black and white image as if anti alais has been used. Is this a side effect of copying the bitmap and if so can it be turned off or any way round it??

Think I'm becoming a pain now!!! LOL
New to DBPro comin from AMOS on the Amiga!
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 9th May 2003 20:00
try setting your project to exclusive mode on the right panel setting buttons.

also add a ,1 to the end of the get image commands to make it more accurate.

SpecTre1
23
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 9th May 2003 20:11
Yeah tried that it still does it in exclusive mode, don't know what you mean by add 1?

What seems to happen is the image is not a crisp black line, it is a line but got grey bits and looks bit blurred.

Here is what I do: (small section out of my program)



rem arange initial images onto screen *********************************
_imagesinit:
pic$(1)="pictures\pic1.bmp"
pic$(2)="pictures\pic2.jpg"
pic$(3)="pictures\pic3.jpg"
pic$(4)="pictures\pic4.jpg"
pic$(5)="pictures\pic5.jpg"
pic$(6)="pictures\pic6.jpg"
pic$(7)="pictures\pic7.jpg"
gosub _picorder
create bitmap 3,640,430
gosub _loadonto3
copy bitmap 3,0,0,639,429,1,areax,areay,areax+areaw,areay+areah
return

_picroutine:
gosub _picorder
gosub _loadonto3
copy bitmap 3,0,0,639,429,0,areax,areay,areax+areaw,areay+areah : sync
return

_loadonto3:
set current bitmap 3
load image pic$(curpic),1
paste image 1,0,0 : delete image 1
set current bitmap 0
return

rem picture order sort out ********************************************
_picorder:
if curpic=0 then curpic=7
if curpic=8 then curpic=1
return


don't know if you can get the idea of what I'm doing from that?

New to DBPro comin from AMOS on the Amiga!
haggisman
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 9th May 2003 20:22
try changing paste image to:-

paste image 1,0,0,1

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
SpecTre1
23
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 9th May 2003 20:34
This helps a bit but still not a true replica of my image even in exclusive mode?

Any ideas how to make it crisp??

Rich?? Is this another thing DB Pro can't do?

New to DBPro comin from AMOS on the Amiga!
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 9th May 2003 20:48 Edited at: 9th May 2003 20:50
Remove/reduce all filtering and anti-aliasing settings in your graphics card display settings is really the only way of solving it... For the time being anyway...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
SpecTre1
23
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 9th May 2003 20:49
Because this is happening when you colour in you can colour some of the lines in because they are not rgb(0,0,0).

Looks like to me that Copy Bitmap screen,x,y,x1,y1,screen,x,y,x1,y1 doesn't truely copy the area of the screen?

New to DBPro comin from AMOS on the Amiga!
SpecTre1
23
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 9th May 2003 20:50
How do I remove the filtering?

I've ran the program in exclusive mode and it still does it but not as bad, still does it though.

New to DBPro comin from AMOS on the Amiga!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th May 2003 20:51
You've just been given wrong info.

The extra ',1' on the end of PASTE IMAGE pastes to the bitmap with transparency enabled.

The line of code you need to change is this:
load image pic$(curpic),1

to this
load image pic$(curpic),1,1
SpecTre1
23
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 9th May 2003 21:05
Well done mate!!!!!!!!!!!!!!!!!!!!!!!!

Once more you have come true with your helpful guy statement!!

IanM the code guru!!

Well that sorts that one out and I am happier again, just need the print and to sort out the flood fill.

Things are going a lot smoother.

So far thats IanM and Sonic that are going into my credits screen for special thanks!



New to DBPro comin from AMOS on the Amiga!

Login to post a reply

Server time is: 2026-07-11 15:33:20
Your offset time is: 2026-07-11 15:33:20