emblem Posted March 25, 2009 Author Share Posted March 25, 2009 Does anyone know how to outline a surface after blitting it to the screen.I can't come up with anything that wont cripple preformance.(Having two seporate images [Outline/No-outline] won't work.) Link to comment Share on other sites More sharing options...
anasky Posted March 26, 2009 Share Posted March 26, 2009 Picture1.BorderStyle = 1 Link to comment Share on other sites More sharing options...
zade_o Posted March 26, 2009 Share Posted March 26, 2009 I don't think that's what he means. Emblem, you mean like, drawing an object on PicScreen using directX commands then outlining it?Ummm… I would imagine, you could draw it 1 px higher and further left, and then make the destRec 2 pxs bigger on the right and the bottom and then if there's a Dx command to lower the brightness all the way to 0 that would make it black Link to comment Share on other sites More sharing options...
anasky Posted March 27, 2009 Share Posted March 27, 2009 @Ghost:> Ummm… I would imagine, you could draw it 1 px higher and further left, and then make the destRec 2 pxs bigger on the right and the bottom and then if there's a Dx command to lower the brightness all the way to 0 that would make it blackI completely lost focus here….Man, it sucks to not know DX Link to comment Share on other sites More sharing options...
emblem Posted March 28, 2009 Author Share Posted March 28, 2009 @[VB:> anasky link=topic=41148.msg408119#msg408119 date=1238133910]> I completely lost focus here….> Man, it sucks to not know DXHeh, but he is right. I'm trying to do it in Pure DX7 code. BlitFast a surface, then outline it.@Ghost:> and then if there's a Dx command to lower the brightness all the way to 0 that would make it blackBut there isn't. I might have to lock the surface and use the resulting array to draw the outline manually. Link to comment Share on other sites More sharing options...
Chakkra Posted March 28, 2009 Share Posted March 28, 2009 I was promised an ending world? Link to comment Share on other sites More sharing options...
emblem Posted March 28, 2009 Author Share Posted March 28, 2009 @[SB:> Chakkra link=topic=41148.msg408722#msg408722 date=1238203246]> I was promised an ending world?If I don't figure this out, the world WILL end. I can do ANYTHING (that's normally possible from vb6) in vb6.:lipsrsealed: Link to comment Share on other sites More sharing options...
Chakkra Posted March 28, 2009 Share Posted March 28, 2009 *waits patiently*When will the world end already! Link to comment Share on other sites More sharing options...
anasky Posted March 28, 2009 Share Posted March 28, 2009 Stop spamming please.Emblem, if I could, I'd help ya.But I can't, as long as it is anything else then VB6 xD Link to comment Share on other sites More sharing options...
Baron Posted March 28, 2009 Share Posted March 28, 2009 do an array calculation on your bitmap loaded in memory.scan along the pixels in an image and when you detect one that isnt invisible and isnt the outline colour change the color of the pixel up left right and below to the outline colour.then once you have your adjusted bitmap display it to screen. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now