| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Comments:
<0> NewBitmap 16 16 is ok <1> oh <0> but Bitmap has to be original <1> i getit:P <0> ;P <1> it wortkkssssssssssssssssssssssssssssssss <1> but the other images did get resized too lol :p <1> i know how to do it :p <0> what's with the other images? <0> oh, by the way <0> does TrayIcon have .Bitmap <1> yeah <0> i mean Picture.Bitmap <1> yeah :o <0> try this then
<0> http://www.vkarlsen.no/pastebin/default.asp?id=7275 <0> it would be much faster code if it works <0> without the in-between Bitmap <1> doesn't work :x <0> then use the old way <1> the old way is kinda buggy :p <1> hold on a sec <0> :) <1> http://img482.imageshack.us/img482/1783/blat7jm.jpg <1> see? <1> i need to give Bitmap the TImage original size <1> i tried using AutoSize but im prolly doing it wrong <1> http://www.vkarlsen.no/pastebin/default.asp?id=7276 <0> Stretch := Rect(0, 0, Bitmap.Width, Bitmap.Height); <0> Bitmap.Canvas.StretchDraw(Stretch, TrayInfo[ind].TrayIcon.Picture.Graphic); <0> why stretch? <0> the first time that is.. wasn't it fine before with .Draw()? <1> is the same :S <1> why don't the TImage autosize work like before?:S <0> autosize just resizes the control so the image fits in it <1> yeah <1> so i can tell the real size <0> so if the image is 800x600 and u do autosize:=true then TImage control will be just as big <1> but it doesn't <1> its allways 32 <0> just check the bitmap's width\height <0> or picture <0> those should be correct <1> how can i check the bitmap size if i set it? <1> or why that is <0> what? <0> if you want to find out the width of TImage <0> then say TImage.Picture.Width <0> instead of TImage.Width <0> unless there is no picture loaded <1> its still always 32 <1> :S <0> that is in case TImage is a control, not a cl*** <0> at Picture? <1> yeah <0> how much should it be? <1> dunno <1> but it was way bigger when i user autosize before <1> remember? <0> no i didn't see it ^^ <1> lol <0> btw i am not sure if autosize has any effect run-time <0> it may be design-time only <1> it did before :X <1> im positive :p <0> what's the problem anyway <0> why do you need autosize <0> did you try TImage.Picture.Bitmap.Width too? <1> yeah <1> that gives me 0 <1> MrBrdo look at the pic <0> after you ***ign it? <1> the_sniff: http://img482.imageshack.us/img482/1783/blat7jm.jpg <1> the ones that were good are now too small <1> yeah after i ***ign <0> can u gimme the previous one too
<0> so i can see <0> oh nvm <0> i see <1> hehe <0> well that makes no sense tho. <0> unless <1> hmm it does <0> how come? <1> cause i get bitmap's size constant <1> so all images get resized the same proportion <1> i need to set Bitmap.width/height to the real size <0> don't compute ratio <0> just do that resize for each icon <0> stretch draw etc <0> no need to know what the ratio is <1> but it doesn't squeeze the icon <1> it does that to the bitmap with the icon on it <0> brb <1> so that the white background gets into a 16x16 square too <1> damn lol <1> 06:55:29 % MrBrdo (~MrBrdo@zephyrus.mrbrdo.net) Quit (Quit: fractal 1.0.9b60 - 406 Method not acceptable Not a blowjob - http://fractalscript.com) <1> 06:55:31 the_sniff: so that the white background gets into a 16x16 square too <1> 06:55:33 the_sniff: damn lol <0> which background? <1> the white on the bitmap <0> yeah why is it there all of a sudden? <1> btw i user the TImage with the auto size to see if the height/width change, they're still kept on 32 <1> even when the size obviously differs <1> MrBrdo when u paste a pic on a blank page and save it to a bitmap, it has a white background <1> right? <0> that's really really weird <1> cause bitmaps aren't transperant <0> yes <1> http://img502.imageshack.us/img502/8005/blahblah7am.jpg <1> this is TImage with autosize <1> and the width etc. property is still the samwe <0> you have a problem if u wanna maintain transparency and resize it ;P <1> nah i just wanna resize it normaly lol <0> u can try DrawTransparent tho <0> :P <1> i want to put a 64x64 to a 64x64 bitmap <1> and a 16x16 to a 16x16 <1> so the 64 is the only one to get streched <0> i didn't get that <0> did you mean 64x64 to 16x16? <1> no 64x64 to 64x64 bitmap <1> then to a 16x16 newbitmap <0> oh <0> so, we did that <0> no? <1> no <0> yeah we did <1> we just drew a whatever timage on a 32x32 bitmap <0> u had the code on pastebin <1> and then made it 16x16 <0> yeah <1> even if it was 16x16 when it was a timage <1> which caused it to shrink <0> yeah that's what u did wrong <0> gimme the code again <0> i told you not to stretchdraw the first time :) <1> draw is the same <0> no it can't be <0> well <0> unless u set the right height and width <0> but why use stretch then <0> just gimme the code let me see <1> http://www.vkarlsen.no/pastebin/default.asp?id=7277 <1> how can i set the right height an width? <0> oh i see what's bugging you <0> yeah well <0> are you sure <0> that TrayInfo[ind].TrayIcon.Picture.Bitmap gives 32? <1> i need to know the TIcon's size
Return to
#delphi or Go to some related
logs:
shetqool
#windows albuteryl
#computers #computers hacked cbts #asp #nhl #politics Relaying denied. IP name possibly forged
|
|