|
Hi all,
I've got the mouseclick handler correctly set up. I have a drawing with some shapes. Is there any way for me to fill the surrounding part of a point until it hits a polygon boundary. Something like Microsoft Paint's "fill" command.
Thanks!
Started by ImSleeping on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Refer to this chapter of the red....
Consider using OpenGL selection capabilities with glSelectBuffer.
What you can do ist to detect the shape selected by the mouse click and draw this shape in a different color .
Using opengl? I seriously doubt that ...
|
|
When you show and hide a div, will it re-adjust surrounding elements automagically?
Sort of how google maps http://maps.google.com/maps?hl=en&tab=wl has that little icon where you can show/hide the left pane.
Is it just making it visible with a animation...
Started by Blankman on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Visibility will hide it but not effect the surrounding.
The display:none option or visibility:hidden tag.
|
|
Hello, I'm newbie, both in JavaScript and in YUI . In YUI library examples, you can find many times this construct:
(function() { var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event, layout = null, ... })();
I think last couples of parentheses are for ...
Answer Snippets (Read the full thread at stackoverflow):
...but what about the previous round parenteses surrounding all the function.
Of parentheses surrounding the function definition is the function itself which, indeed, the second set I learnt very-very much.
|
Ask your Facebook Friends
|
I have a block of product images we received from a customer. Each product image is a picture of something and it was taken with a white background. I would like to crop all the surrounding parts of the image but leave only the product in the middle. ...
Started by Kyle B. on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Essentially, you need to scan pixel rows/columns to check for non-white pixels and isolate the bounds of the product image, then create a new bitmap with just that region... .
I've written code to do this myself - it's not too difficult to get the basics going .
|
|
I am wondering what server control people generally use for surrounding and separating blocks of related controls and content in a Web Forms scenario. Often times I need to surround a block of HTML and related Server controls with a 'panel' that I can...
Started by Yobi21 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
</tr> <% if....
You might grit your teeth and do it via server side code blocks that access properties on the code behind:
<table> <tr> ... .
Even with the PlaceHolder control, Visual Studio will complain that you don't have valid HTML .
|
|
I am looking for an elegant way to implement this. Basically i have a m x n matrix. Where each cell represents the pixel value, and the rows and columns represent the pixel rows and pixel columns of the image.
Since i basically mapped points from a HDF...
Answer Snippets (Read the full thread at stackoverflow):
However, since you do it with Boost, you can check how this is done in this Boost example
I beleive you... .
You might be interested in checking fast implementation of convolution .
The main issues here are utilizing all available cores and cache effeciency .
|
|
We have a project where data is written to a logging table. Now, when investigating a problem, it would be useful to query for the problem row, and also get the surrounding rows, so that we can easily see what led up to the problem. The log table had ...
Started by Greg Reynolds on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you just want the latest :n rows for 1234:
select timestamp, activity_code from ( select timestamp, activity_code from log where reference_id=1234 order by timestamp desc ) where rownum <= :n;
Here's a conceptual decomposition of a way to do it... .
|
|
I'm trying to make an asterisk line up vertically with surrounding text/graphics rather than above it.
I thought applying a negative BaselineOffset would be the solution, but it seems to have no effect.
Here's the documentation for the TextBlock.BaselineOffset...
Started by DanM on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As far as I know the TextBlock.BaselineOffset only affects a TextBlock inside another TextBlock :
<TextBlock>Some text <TextBlock BaseLineOffset="10" Text="*"/></TextBlock>
Adjusting BaseLineOffset allows you to move the asterisk vertically... .
|
|
In code we got from a "psd2html"-service, I see a lot of spans surrounding the contents of div-tags.
I know the difference between spans and divs, but I cant figure out why the code looks like this:
<div class="forgot-password"> <span><...
Started by truppo on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It would make sense if the code was:
<div class="forgot-password"> <span> some text </span> <a href="/forgotpassword/">Forgot password?</a> </div>
So that you can discriminate... .
To me it looks like overly complicated code.
|
|
I'm considering asking for credit card details BEFORE an address for a physical product with average purchase price between $10-$50
What might be the technical (or non technical) issues surrounding doing this?
What comes to mind is :
This seems a little...
Started by Simon on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Often, the site is so poorly designed with no answers to obvious questions that you have to go through... .
I often cancelled buy attempts and abandoned the sites when I got asked for my credit card number right in the face .
My advice to you is don't do it.
|