"Get Image" Added border around indicators

Last week, I was browsing these forums for a way of making an array of buttons (or indicators) with separate boolean text for each button.  I stumbled upon a suggestion from I BELIEVE it was Ben (Sorry if I'm misattributing it) to use an array of 2D images with a "Mouse Down" event to click.  I wrapped all this into an XControl so I can pass it as a boolean array (using property nodes to change the boolean text.)  So far so good.
The only hiccup I've run into so far is that if I grab an image of an indicator, it adds an extra 3 pixel border on every side.  I'd like both indicators and buttons to be the same size, as it makes the transition from control to/from indicator not change the size of the control.
I've attached an image of the problem, and I'm not sure the best way to go about this.  I have no idea how to crop 2D images, or if that is even the best way of going about it.
Any help would be appreciated.  I've attached the section of the code with the issue.
Solved!
Go to Solution.

If you will look closely, you will note that the LED has a 3 pixel bezeled border, which corresponds to this. The problem is that LV is not entirely consistent in how it deals with these borders (you can't use them to set the size, as you saw, but they do apply when aligning, etc.). The easiest thing to do in your case would be to crop the image, which is easy enough, even if you don't know how (and looking at the avaiable functions and examples is a good start) - unflatten pixmap, array subset on the output, draw unflattened pixmap. The sizes for the array subset can come from inside the case structure.
Try to take over the world!

Similar Messages

  • Can't Get rid of border around images??

    every time i drag and drop an image into my background in dreamweaver it creates two white lines around the border of the image to let me know the images place, how do I erase these white lines?
    The image and the background are both black and the white lines detract from the simplicity of the elements used...

    The border is in your image.
    Here's a crop from Bridge with your image in the viewer and th background on black...
    Martin

  • I've downloaded a game in iTunes, but I can't open it.  It gets a blue border around it but does not open.  How do I open it and play it?

    How do I open a game app in iTunes?  I've downloaded the app, but when I click to open it, it gains a blue ring around the icon but will not open.

    iOS applications can't be run on a computer.
    (122964)

  • How to remove black border around image files?

    I'm something of a beginner with Photoshop, so forgive me if I've missed something entirely obvious: for some strange reason I'm now getting a black border around all image files that I save through the "Save for Web & Devices" panel. Does anyone know how I can save without creating this border? It looks rather unsightly when I load it into a client site. The file in question is a .png, but I seem to be getting the same effect with all other image files as well.
    Thanks in advance,
    Shane

    One cause could be having the matte color set to something other than none.
    Is that a png-8?
    MTSTUNER

  • Black border around bg image

    Hi I have given up on the random bg images for my client's site at www.carterbrands.com  I have allocated an image per page.  I am getting a black border around the image.  I dimly remember that there is a way around this but I have forgotten what it is.  Any help greatly appreciated.
    Thanks in advance, Matt.

    But... my layout grid is 1010 by 740.
    I'm sure it is
    However, your grid floats on a page that is whatever size your various viewers choose. Change your screen resolution, pull your browser window out wide or shrink it up small - a web page is fluid, flexible - and has NO fixed size.
    We design for a particular width in pixels (some of us, not all the time) - in the hope that most of our target audience will see that fitting neatly on to their screen most of the time, but we have to accommodate people who make different choices.

  • Border around an href img

    I know this is going to turn out to be obvious, but....
    http://www.fourcreeks.org/may-creek-basin/watersheds.htm
    The main image is included in an <a href> to make it a
    hyperlink. Before I added the link there was no border around the
    image; now there is.
    I've tried to set the style for the <a> to border:0;
    text-decoration:none; background:transparent but nothing seems to
    remove the border that was added when the link was created.
    What do I need to do to get rid of the border around the
    linked image?
    Thanks
    Tom

    On 27 Sep 2006 in macromedia.dreamweaver, TCarp wrote:
    > I need to bring this topic back up. Using the img border
    0 worked
    > for the initial border around the image, but now I'm
    noticing that I
    > get a dashed border around the image when the link has
    been visited.
    > I experimented with a:visited img, a img:visited and a
    few other
    > combinations but nothing worked.
    >
    > How do I totally eliminate any borders around images
    used as links
    > in any state (hover, visited, etc.)?
    That's an accessibility feature, so that those using adaptive
    devices can
    see where they are on the page. You can eliminate it - do a
    web search
    for 'link scrubber' - but it makes your pages less
    accessible.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Black Border Around Footage

    Hello,
    I have a problem when I import footage into Final Cut. If it is from my camera in SD at 16:9 I get a black border around the footage. It looks like the footage is scaled down a bit but when I open it, it isn't. When I capture it, it looks normal and I can work with it in iMovie but as soon as it is in the timeline of FC it gets the rectangle around it.
    Please help, I need to fix the footage +by tomorrow+.
    -thanks

    Please be specific. What camera is this? What format are you shooting? What are the item proprieties for the clips? What are the item properties for the sequence? Do they match?

  • Draw a thin border around an inputText box????

    Hi,
    I would like to draw a thin border around an inputText box but when I use the following, I am getting a thin border around the inputText box as well as the label (text) associated with it. I don’t really want this border around the label.
    border-width:thin; border-style:solid
    So how can I draw a thin border just around a inputText box only (Not around the label associated with the inputText) ?
    Regards
    V.Piraba

    Hi
    I found the answer. Just do the following to draw a thin border around a inputText box.
    border-width:thin; border-color:rgb(0,0,0)
    ---------------------------------------------

  • I can't move a layer in photoshop CS6 Beta for Mac. I just get a red border

    I can't move a layer in photoshop CS6 Beta for Mac. I just get a red border around the canvas. Any Ideas?

    You might want to try posting in the CS6 forum.
    http://forums.adobe.com/community/labs/photoshopcs6?view=discussions

  • Border around button on mouse over

    hi,
    I am trying to get a white border around a buttonwith green background on mouse over but the button always get filled with blue.
    <Button Height="35" Grid.Row="0" Background="Green" Grid.Column="1" Width="80">
    <Button.Style>
    <Style>
    <Style.Triggers>
    <Trigger Property="Button.IsMouseOver" Value="True">
    <Setter Property="Button.BorderBrush" Value="White"></Setter>
    </Trigger>
    </Style.Triggers>
    </Style>
    </Button.Style>
    </Button>
    the button background is green but the green color is overlapped with blue on mouseover.
    I want the green color to be there and a white border to appear around the button.
    can somebody help me with this?
    Thanks,
    Shaleen
    TheHexLord

    Yes, this behaviour is by deign in WPF. Since button control in WPF has one ButtonChrome component and its backgound will be re-rendered when we use mouse over it. I can show the default template of Button: (we can use Visual Studio 2010 + to export
    the default template)
    <ControlTemplate x:Key="Template1" TargetType="ButtonBase">
    <my:ButtonChrome Background="{TemplateBinding Control.Background}" BorderBrush="{TemplateBinding Control.BorderBrush}" Name="Chrome" RenderDefaulted="{TemplateBinding Button.IsDefaulted}" RenderMouseOver="{TemplateBinding UIElement.IsMouseOver}" RenderPressed="{TemplateBinding ButtonBase.IsPressed}" SnapsToDevicePixels="True">
    <ContentPresenter Content="{TemplateBinding ContentControl.Content}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" />
    </my:ButtonChrome>
    <ControlTemplate.Triggers>
    <Trigger Property="UIElement.IsKeyboardFocused" Value="True">
    <Setter Property="my:ButtonChrome.RenderDefaulted" TargetName="Chrome" Value="True" />
    </Trigger>
    <Trigger Property="ToggleButton.IsChecked" Value="True">
    <Setter Property="my:ButtonChrome.RenderPressed" TargetName="Chrome" Value="True" />
    </Trigger>
    <Trigger Property="UIElement.IsEnabled" Value="False">
    <Setter Property="Control.Foreground" Value="#FFADADAD" />
    </Trigger>
    </ControlTemplate.Triggers>
    </ControlTemplate>
    so we have one simple solution to apply our custom background in button, remove the property set in buttonChrome:
    <Window.Resources>
    <ControlTemplate x:Key="Template1" TargetType="ButtonBase">
    <my:ButtonChrome Background="{TemplateBinding Control.Background}" BorderBrush="{TemplateBinding Control.BorderBrush}" Name="Chrome" RenderDefaulted="{TemplateBinding Button.IsDefaulted}" RenderPressed="{TemplateBinding ButtonBase.IsPressed}" SnapsToDevicePixels="True">
    <ContentPresenter Content="{TemplateBinding ContentControl.Content}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" />
    </my:ButtonChrome>
    <ControlTemplate.Triggers>
    <Trigger Property="UIElement.IsKeyboardFocused" Value="True">
    <Setter Property="my:ButtonChrome.RenderDefaulted" TargetName="Chrome" Value="True" />
    </Trigger>
    <Trigger Property="ToggleButton.IsChecked" Value="True">
    <Setter Property="my:ButtonChrome.RenderPressed" TargetName="Chrome" Value="True" />
    </Trigger>
    <Trigger Property="UIElement.IsEnabled" Value="False">
    <Setter Property="Control.Foreground" Value="#FFADADAD" />
    </Trigger>
    </ControlTemplate.Triggers>
    </ControlTemplate>
    </Window.Resources>
    <Grid>
    <Button Content="Button" Background="Green" Name="button1" VerticalAlignment="Top" Width="75" Template="{StaticResource Template1}" />
    </Grid>
    Then you could contiune to apply your custom trigger in style to apply different color on MouseOver the button.
    Bob Bao
    Do you still use the same Windows 8 LockScreen always? Download Chameleon Win8 App quickly, that changes your LockScreen constantly.
    你是否还在看着一成不变的Windows 8锁屏而烦恼,赶紧下载这个
    百变锁屏
    应用,让你的锁屏不断地变化起来。

  • How do i get rid of a blue border around an image

    Hey guys,
    I have an image on my page that i am using as a link but it has a blue border around it. How do i get rid of this border

    Add "a img { border: none; }" (without the quotes) to your stylesheet.

  • Can't get rid of white border around image

    http://www.gunnar.ca/laminatepage2.htm
    I created a rounded corner in photoshop for my table. I
    created a cell in the bottom left corner of the table and placed
    the gif. There is a thin whit border around the outer edge of the
    gif, so it doesn't look genuinely rounded. Can anyone tell me how
    to get rid of that so it looks like the table is actually rounded?
    Thank you!

    Because the table containing the GIF has a border. In your
    styleA.css
    stylesheet, the rule:
    .border {
    border: 1px solid #E5E5E5;
    adds a border to the table. Delete the rule. Of course - that
    may affect
    other things that use the .border class. Or - delete the
    class from the
    table tag.
    Several problems with the page:
    styles.css cannot be found
    sideNavStyles.css cannot be found
    34 vaildation errors:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.gunnar.ca%2Flaminatepage2.htm
    Alec
    Adobe Community Expert

  • An unwanted white border appears around image after dragging it to the document. Why? How to get rid of border?

    Thanks.
    Bob

    The primary image that I'm concerned with is a jpg file, 74kb, 642x402. Also used same image at 53kb, 400x249.
    Here's some good info.
    I tried using same image on an old Pages document I made last yr - No border.  And - I used an image from the old flyer and put it on the current flyer and - got a Border.
    A difference: the flyer I used last yr was a blank document - no template. The current flyer I'm working on is one I chose from the templates with the tear-offs at the bottom for name and phone number.
    Is there something intrinsic with this template that creates a border around images?
    How do I do a screensnap? If you still need.
    Thanks again.
    Bob

  • Border around link image

    I placed an image, then linked it. Now I have a bright blue
    box around it. Any ideas on why it is doing this?

    Use CSS with this rule -
    a img { border:none; }
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "cdeatherage" <[email protected]> wrote in
    message
    news:el1sem$snk$[email protected]..
    > The default designation in most browsers indicates links
    by changing the
    > text
    > to blue and adding an underline or placing a blue border
    around an image.
    > [The
    > end user can change that in his/her browser preferences,
    but that is
    > another
    > issue.] Because you made the image a link, your browser
    is showing the
    > border
    > around the image.
    >
    > The only way you can get around that is, in DW go to
    page properties and
    > re-set the colors for links to something that you like.
    If this image is
    > the
    > only link on your page, you can just make the links
    colors the same as
    > your
    > background, and it will disappear. If you have other
    links on the page,
    > however, this isn't going to be practical because they
    will disappear, and
    > that
    > would not be a good thing.
    >

  • How to get rid of the black border around the artboard

    Hopefully my last question for tonight.
    I need to get rid of the black border around the artboard. The two images show my drawing lined up with the art board and then inside the artboard. The dark gray is not the artboard.
    As you see, the artboard has a black border. I need to get rid of it. It shows up in my project when my color key is green. The black won't go to transparent.
    So how-to get rid of the border? Thanks
    ***Update***
    I figured it out. View > Hide Artboards. Maybe this will help someone. Doesn't change the fact my spider looks like a tick:)

    Doesn't change the fact my spider looks like a tick:)
    Try to get hold of a real spider and take a look at its anatomy, specially where the legs sprout from :-)

Maybe you are looking for

  • Web Enabling SAP R/3 Transactions in the Portal

    Hi, Our requirement is to web enable SAP R/3 (>4.6) transactions in the portal (EP 6.0). We don't want to check for user authorization in the portal as all these things are done in the R/3 system. We just want to have an iView in the portal which wil

  • Another problem with using canvases and scrollviewers in tab

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Med

  • Java Components and Look and Feel

    Can anyone suggest a free look and feel that does not resemble the standard stuff that comes with the JDK? Also, Swing seems to be missing some important components like dockable windows, and toolbars. Can anyone suggest some resource that offers int

  • Should I use the short vector types for C++ AMP?

    Hello, is there any performance reason to use short vector types (as outlined in http://blogs.msdn.com/b/nativeconcurrency/archive/2012/04/03/short-vector-types-in-c-amp.aspx) in my C++ AMP kernels that will be confined to execution only on the GPU?

  • Wired network setup - how?

    Haven't setup a network before, and would like to use my BT Business Hub router to help me do it. Would also like my old Powerbook G4 to connect to shared drives. What do I need to do? My BT Business Hub supplies broadband internet access. The MBP pi