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 Discussion / Image Memblock

Author
Message
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Jan 2003 19:58


i was making a memblock tutorial for Rose ... not this should've worked right?
and actually this is completely baffling me to why it didn't, someone check over this and see if you can see something i've missed.

i know in the help it says 2byts per pixel, but thats for 16bit ... and i always thought that it didn't matter what bits it was as long as you wrote the pixels with the right size it would be oki

is this wrong, i mean i'm gonna go try by converting to 16bit values but seems kinda odd if thats the case, and i'm probably just missing something.
Anata aru kowagaru no watashi! http://members.lycos.co.uk/timesaga/darkbasic/gir.gif[/img]
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Jan 2003 20:11
You are only moving the memblock position forward by 1 byte at a time when setting up the header to the memblock.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Jan 2003 20:20
DOH! i knew i'd miss something

Anata aru kowagaru no watashi!
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Jan 2003 20:33
ack still doesn't work

Anata aru kowagaru no watashi!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Jan 2003 21:53
Variable name wrong here: ptrImage(1) = dwWifth

And all of your array accesses are off by one - add 3, not 2.

Still don't work though
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Jan 2003 22:14
Done it! Another variable name wrong - using BitPerPx instead of dwBitPerPx.

Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Jan 2003 22:28
lmao... see and this is why i prefer to use Ciyanna - pitty i have to rewrite it cause i left it at home

god i wish DarkEdit and DBPRO IDE had better features for those of us who can't spell

thanks Ian, the helps much appreciated

Anata aru kowagaru no watashi!

Login to post a reply

Server time is: 2024-05-05 05:33:12
Your offset time is: 2024-05-05 05:33:12