Tried to get that to compile, but it's missing files. Post a .sln file, outside of the program folder itself. Inside, copy everything EXCEPT the BIN and OBJ folders, and we can unzip and run.
HotSpots.sln would open .\HotSpots\My Project
Printable View
Tried to get that to compile, but it's missing files. Post a .sln file, outside of the program folder itself. Inside, copy everything EXCEPT the BIN and OBJ folders, and we can unzip and run.
HotSpots.sln would open .\HotSpots\My Project
Ya, and I couldn't frankenbuild it either.
I am eager to take a peek though.
__________________
Tip
Oh, and I've got a good tip that's slightly related to the .sln file.
Sometimes that file ends up inside the folder along with the .vbproj file, after converting from an older solution 2003.
It's easy to move the .sln to it's proper placement outside.
Then open it with notepad, and on the 3rd line or so, you can modify the path to the .vbproj file.
The line would look something like this:
This doesn't actually work with the HotSpots project, but it would work for converted projects, that don't conform to the vb 05-08 structure.Quote:
Project("{.....}") "HotSpots", "HotSpots\HotSpots.vbproj", ....
Yup, the MyProject folder is empty.
But the solution file actually opens the project file, which then in turn needs the contents of the MyProject folder.
So we don't even need a solution file, just the MyProject folder content.
I get about 10 errors, about missing resourses. Might be something about Vista x64?
I just got 1 error(xp), not able to open the vbproj file.
Almost certain, it's the missing resources within the MyProject folder.
Sorry Guy's ..
Not quite sure what the hell happened there, Posted it the same way i always do ... however somehow i think something got Fed.. When i check the original zip on my system, it also gave errors..
Heres a new zip .. (tested this time, and it does have everything in it ...) [.NET 2008 (2.0 Framework)]
Hey GremlinSA,
The solution file is getting an error, saying that it was created by a newer version. Perhaps 2010?
The project file seems to open fine though.
But man, this 2008 makes everything run wicked slow.
I had tried 2008 early last year, and gave up because of the insistently annoying intellisense, and extra junk jazz that was pre-requisite.
I'm beginning to regret re-installing it, but I got check it out more thouroughly I guess.
Wow, that's awesome code Grem! Works perfect.
Unforetuneatly, 2008 has got to go for now.
It's causing all of my windows a 400-800 millisecond delay before showing.
I mean all of them.
I'm gonna re-re-install it after doing a 2 minute shutdown, and see what happens on my other machine too.
If nada, then it gets the boot for good.
The basic idea about not zooming the mask image is taken from work done in the Crop/ Zoom project Thread, (VB6 forum)..
This way you have a lot less distortion of the pixel data, and a more accurate Hotspot definition.. (If the zones are painted properly..)
In the Grey scale image i just used a 20 pixel pen to paint over the specified hotspot regions, Freehand.. then i saved it in Jpg format, that does haze the edges, BMP is better for masks..
I also used a 10 step color gaps as it alows you to see the different regions in the mask, however you can use 1 step color gaps, and have 255 hotspots... or you could use truecolour and have prety much unlimited hotspots..
I'm not sure why it told you that it was created in a newer ver.. I'm using VS 2008 Pro.. (9.0.21022.8)
It's super impressive, and very short code. I was expecting at least 3-4 pages.
I had a hard time trying to trick it into giving the wrong hotspot at all.
You're right, it should not have thrown that error, because my version in the about window, says 9.0.30729.1, which is actually newer than yours.
However, I suspect it's the pro or Studio, since this is only express. Not sure how that works though.
Great work, Gremmy! Finally got around to testing it out. Need a little more info about the greyscale. How did you make that again? I see tracing the hot-spots. Obviously BLACK is zero.
Then you colored everything in the region BLACK, and then marked the LSB of all the BLACK regions?
I made it even easier than that ...
Because Pic2 is a background mask, and the user does not get to see it, i used all the greyscale bits, giving me 256 different regions. (&H00 - &HFF) ..
I used white (&HFF) as the base region, or background, non hotspot. and painted each region needed as a hotspot with a different color.
So for the first region i used black (&H00).. For region 2, I could have used the next color (&H01) but i jumped a few to visually show the different regions in the masked image. So region 2 is color 10 (&H0A), region 3 = 20 (&H14) .. etc
Esentually you use each available color as a region, and can have 255 hotspot regions set in the image.
Gremmy..
OK. That makes sense. I've used a Mask image before, but it was two-color only
That is a clean and usually better approach....but, the original post:
Technically eliminated any approach where 2 images (one for display one for mask) was used.Quote:
based on a picture
Once one "plays with" the two image approach and is comfortable in understanding its operation, it should not be difficult to make the jump to slight restrictions in the image colors. e.g. only even shades so that the least significant bit is not used to convey color, but rather conveys (part of) the mask.
:wave::wave:
TheCPUWizard,
Man, you just disagree with everything.
Technically, the original post didn't say
"based on one picture"
That was your own mental restriction.