@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> how do you put 2 bytes side by side and copy the result into an integer?
<1> copymemory?
<1> although thats a lot harder than just doing the math on them
<0> ah
<0> actually i just figured it out
<0> feels like i got cobwebs in my brain
<0> just gotta multiply the more significant one by 16
<1> or not
<0> ah, ****
<0> u gotta multiply it by 2^8 to make it shift 8 bits
<0> busy working with these weird bitmap headers.
<0> there are 4 bytes which represent the width
<1> and?
<0> they start with most significant and move to least significant
<0> so width = b4 + b3*256 + b2*256^2 + b1*256^3
<0> is there a better way of doing it?



<1> that'd be the order they're already in
<0> its a mind ****.
<1> who said you have to reverse the bytes?
<0> ya, its the other way around.
<1> who said you have to reverse the bytes?
<0> the field that contains width is 24030000
<0> if you read the bytes backwards you have 00 00 03 24h. if you convert that to decimal, its 804 pixels width.
<1> wait
<0> i'd normally expect the MS byte to be on the right and the LS byte to be on the left, but its flipped
<1> huh
<1> most sigificant is on the right
<1> erm
<1> left
<1> normally
<0> i know
<0> but bitmaps are ****ed up
<0> the first row of data of the file draws the bottom line of pixels
<0> and it works its way up
<0> i'm delving into bitmaps today
<0> writing some pattern recognition.
<0> or trying to :p
<0> sweet, wrote a lil routine that takes 4 bytes from any part of the bmp header and converts them to a long
<1> I'm looking at working code
<1> which doesn't reverse the bits
<1> and I just ran it, and it works fine
<1> flipping the row order is an option in photoshop
<0> not reversing the bits
<0> but the bytes.
<0> how does the code load the bytes into a long?
<1> thats what I meant
<1> Open BufferBM For Binary Access Read As #BMFileNum
<1> 'Read the bitmap information
<1> Get #BMFileNum, , FileHeader
<1> Get #BMFileNum, , InfoHeader
<1> Close #BMFileNum
<1> BMHeight = InfoHeader.biHeight
<1> BMWidth = InfoHeader.biWidth
<1> so im not sure what specs you're reading...
<0> hmm
<0> u wanna swing that code my way plz?
<0> i'm just wondering now a way to convert a long into bytes
<0> some mods
<2> hi kickstand
<3> hello Re_Boot
<0> this is such ****ed up stuff
<2> Lope several ways, a long is 4 bytes, look for high word and low word(high 2 bytes low 2 bytes) and hi byte and lo byte
<0> yeah, reading the long like an array would be nice.
<2> I dont think you can
<0> i'm using vb6 btw
<0> looks like high/low word is .net
<0> i devised a way
<0> B(0) = datasize Mod &H100
<0> B(1) = (datasize Mod &H10000) / &H100
<0> etc, but it cant do B(3) = (datasize Mod (256 ^ 4)) / &H1000000 i get an overflow.
<2> use a double data type(8 bytes)
<0> its not that.
<0> the cause of the overflow is the mod function cant handle such a big number
<2> iirc in memory its stored as low word hi word, &h11223344 is actually low address(start address)(low word 3344) and then the higher address(1122)
<2> so if you read it liner, youd read 33441122
<0> hmm
<2> not exactly the orignal value



<0> well, thats similar how these numbers are stored in the bmp file
<0> but at the moment, i need to convert a long to 4 bytes
<2> why didnt you down load a bitmap cl*** to take the pain out of it
<0> i think i'll try the hex function and convert it to a string.
<2> anyhow theres alot of source for hi/loword functions and hi/lobyte
<0> i dunno, i looked a fair bit on planet source code. didnt find anything decent
<0> i'm converting a 24bit bmp to monochrome
<0> oh hehe, theres actually no problem.
<0> the last mod is un-necessary
<1> lope, I'm using the standard bitmap headers
<1> Public Type BITMAPFILEHEADER
<1> bfType As Integer
<1> bfSize As Long
<1> bfReserved1 As Integer
<1> bfReserved2 As Integer
<1> bfOffBits As Long
<1> End Type
<1> Public Type BITMAPINFOHEADER '40 bytes
<1> biSize As Long
<1> biWidth As Long
<1> biHeight As Long
<1> biPlanes As Integer
<1> biBitCount As Integer
<1> biCompression As Long
<1> biSizeImage As Long
<1> biXPelsPerMeter As Long
<1> biYPelsPerMeter As Long
<1> biClrUsed As Long
<1> biClrImportant As Long
<1> End Type
<0> hehe
<0> thats a killer
<0> its humorous that i h***led with this ****
<0> and its that simple.
<0> where did u get those headers?
<1> from some code I was using
<1> but they're right in the api viewer
<0> hahahahah
<0> slut!
<0> ****in hell *shakes head*
<0> :)
<0> ah
<0> damn thats funny
<0> i should use this frikkin api viewer more often
<0> *g*
<0> geezus!
<0> i love the get statement
<0> tis so clever
<0> i haven't used it too heavily.
<0> doh: thank you very much bud
<0> once again, you have helped me greatly :)
<0> and thanks too reboot.
<4> hey
<5> hi
<3> hello
<4> how do i capture the client area of window without it being foreground? i tried GetDC and BitBlt but it will just get whats on top at that area of the screen
<5> yeah
<5> no idea.
<6> so yeah
<7> i have 500MB left on my cap
<7> for 2 weeks!
<5> suxor
<5> then what?
<8> he has to wank to stored pr0n
<5> ah
<5> i was refering too, is the speed then capped (as is often done in NZ when your data allowance is used up) or are you billed per gig thereafter.
<8> it would be funny if they sped up your connection, but then billed you heavily for anything over your limit heh heh
<5> haha.
<5> I have a 256kbit 40gb plan
<5> which is more than roffle has on his 3mbit plan
<5> for some reason in NZ....
<5> the faster your pipe, they less data they give you
<5> Which seems counter-intuitive to me
<8> look at it from the cost to the isp


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #vb
or
Go to some related logs:

#assembly
+kiam kana
meaning of kangna
analamaz
Kaissa scan
error629
#india
Robindro Shongit
#india
Chinese cookbook 50 Ways to Wok Your Dog



Home  |  disclaimer  |  contact  |  submit quotes