Way To Feather The Edge Of An Image?

Apr 2, 2010

Is there a way to feather the edge of an image?

View 1 Replies


ADVERTISEMENT

Doubling Image With Edge Detection?

Mar 16, 2011

I have a function to do edge detection that works fairly good with one pass and without using a convolution filter. The only thing is that it will shift by one pixel the resulting image when I runt it from top to bottom and from left to right. I can live with that. Just a curious thing that I got when I ran it several times in a loop to see the effect of applying it several times on the resulting image.A deformed image appears at the beggining and then, bit by bit it splits appart and after shifting it the width of the original image I get a double image. I wonder how the computer keeps track of the first image and is able to separate the two after several iteractions.I know that in electronics you can have several signals in a circuit and you can separate them with frequency filters, or you can simultaneously download several files with the same modem aand the two computers will synchronize each one, but this surprissed me.

Here is a simplified version of my function

Private Function Preview(ByVal Thumb As Image) As Image
Dim bm As New Bitmap(Thumb)
Dim X As Integer
Dim Y As Integer

[code]....

I have tried with more complicated images and with larger sizes, but to make upload smaller I includes these two images of simpler and smaller size. A view of the GUI and an animation of the process:reload to see the animation.

View 1 Replies

WinForm Background Image - Smooth Edge

Sep 27, 2011

I am creating a windows form background image, but when it use to a form it's look very bad in the edge, it don't smooth. Using VB only. I tried use alphablend but how.

View 3 Replies

Measure Distance Between Two Or More Image After Edge Detection Feature Extration

Nov 23, 2010

I need to read 10 images in 1 folder and do feature extraction onto 10 images.Does anyone can suggest any good edge detection by using C++ / VB.Net / C# language? After I can successfully detect the edge and write a new image file (in this case is generate 10 new edge detection filtered images, only black and white line image) within the same folder.Then lastly, I do not know any distance measurement able to calculate distance between each edge detection filtered-images (not the original image) and show the result in graph.How can read those images back and get the data of the edge?Keywords are edge detection and distance measurement.

View 2 Replies

IDE :: Make Application Stick To Screen Edge When Dragged Near Screen Edge?

Dec 7, 2011

i am developing one application for which i want it to stick to the edge of the screen when dragged near screen edge.

View 2 Replies

Hide The Forms Edge?

Sep 14, 2011

I was wondering if there is a way, I can hide the forms edge. By "edge" I meen the blue/gray half-transperrant edge. Like in the spotify login menu, for example. There is no edge.

View 3 Replies

Soft Edge Wipe Using GDI

Jun 18, 2009

I'm trying to draw some text using GDI (i.e. using a graphics object). It is done using the basic method of creating a path, adding a string to it and using a brush to fill it.

The only tricky part is that I need to apply a soft edge wipe to it. To describe what I'm trying to do better, I've uploaded an example done in photoshop: [URL]

What is the best way of achieving this? I need to be able to control the mask that is creating the soft edge - i.e. the position of the gradient, the width of the gradient etc.

Ideally I'd like to do it using the graphics object and not dipping into .dlls - but at the end of the day I'll do whatever it takes!!

View 2 Replies

Do Canny Edge Detection In A Picture

Jun 18, 2009

I have a problem in detection edges in a picture. Im going to use this to make some recognition of pictures. I have found a way of doing Sobel filtering without the use of system.drawing.bitmat with BitmapSource.CopyPixels. I have posted code fore Sobel filtering here:

[Code]....

View 7 Replies

How To Curve The Edge Of A User Control

Jun 22, 2010

How do I curve the edge of a User Control?

View 1 Replies

MSChart EditCopy Edge/Legend Bug?

Jun 9, 2011

I am using axMSChart objects to display charts in my VB .Net Windows Forms App.I am also trying to export them to a PowerPoint presentation which I automatically generate using Office Interop.However, when I use EditCopy to copy the Chart to the clipbord and paste it into PowerPoint, the color of the Edge of my Bar Chart is set to red for the firstSeriesCollection and green for the second one.

View 1 Replies

Draw Control Past Edge Of Form?

Feb 24, 2010

I've got a usercontrol that's a simple rectangle with three labels on it. It's essentially triggered to give a caption to an image when the mouse is moved over it. As I feared, adding the control to the form (or any container on the form) restricts drawing the control to the region defined by the container. I tried increasing the region of the form and the container, but it still didn't draw outside the container.

So my question is: Is there a way to make the control display partially inside the container/form and partially outside it, or is there a better object type that will do what I want?

[cod]e...

View 4 Replies

Draw Ellipse That Show Above PictureBox Edge?

Dec 17, 2009

I have a picture box. The user can click with in the picture box. Anywhere they click it will draw another Ellipse. The problem is the edges of the picture boxes cut the image of the newly drawn ellipse. Is there a way draw the new ellipse so the user can see the entire thing?

View 6 Replies

How To Position Buttons Relative To Edge Of Form

Jul 18, 2012

I would like my 'quit' button to appear in the bottom right hand corner of my menu screen, but it seems that every computer in the office has a different sized screen, different size ration (some are widescreen) and different resolution. When I deploy my program, the quit button may appear off-screen (the user has to scroll down to find it) or it may appear half way across the screen on a widescreen laptop for example. If I set my form to 'maximized', is there a way to position a button relative to the bottom right hand corner of the form? Also, on one maximized form I have two datagridview's side by side. Is there are way to automatically set each one to take up half of the available form width, so they fill the form nicely?

View 2 Replies

Make Application Stick To Screen Edge?

Oct 15, 2011

i am creating one application and i want it to stick to screen edge/corner when dragged near to the edge of the screen.i want it be like in WINAMP.

View 2 Replies

VS 2010 : Form Snapping To Edge Of Desktop?

Oct 10, 2011

I've got a borderless form that I'm handling the MouseDown, MouseMove & MouseUp events to do the dragging and re-sizing which I have working just fine but I started thinking how neat it would be if I could have the borderless windows snap to each other and to the edges of the screen(s), this part I'm stuck on. I've got them snapping together just but and I've got it snapping to the edge of the screen but I have a dual monitor set up at home and I can't move it to my right side secondary screen with the code I have now. I'm attaching a sample VS2010 project with only the relevant code for this.Eventually I might add in the snapping to the desktop edge or to another note window's edge when resizing too, but that's not my focus right now.

View 4 Replies

Drawing A Resizable Rectangle (by Edge/corner Dragging)?

Jul 19, 2003

I am trying to make a rectangle that can be resized by the userby clicking and dragging the edges/corners of the rectangleTypically, if the mouse enters the rectangle region, then smalladjustment boxes should appear at the corners of the rectangleand also at the middle of the rectangle's edges (to allow the userto drag and resize the rectangle). When the mouse leaves therectangle region, then the adjustment boxes should disappear.I have the code to draw the rectangle and to produce the smalladjustment boxes, but I'm not sure how to accomplish thedrag and resizing steps (or if it's even possible with the way mycode is written).

Code:Imports SystemImports System.DrawingImports System.Windows.Forms
Private bBlocking, bValidBox As Boolean Private pt1, pt3 As Point Private rectBox As Rectangle Private cornerRect1 As Rectangle Private cornerRect2 As

[code]....

View 10 Replies

Game Programming :: Detect A Collision With The Edge Of A Form

Oct 2, 2009

I am currently investigating vb gaming and have set up a test project to move an object; it moves fine. The problem is that when it reaches the edge of the form it continues to move and eventually leaves the form entirely. So my question is how do i work out if my object has touched the edge of the form?

View 5 Replies

Custom Control Losing Size Around Edge When Added To Form

Dec 7, 2011

Having some issues with creating a simple control in vb.net.

I create a control with a single label in, I don't change anything except the colour of the control and the label and also making the label anchor to the edges ( with a small border around the edge)

When i then build it and add this control to a form. Some of the edges are cut off and it isn't anchored the way it was in the control.[url]...

as you can see in the second image the control has lost its white border at the right and bottom.

View 1 Replies

Make The Border Edge Round Like Windows Live Messenger?

May 17, 2010

Is there a way to make the border edge round like Windows Live Messenger?

View 9 Replies

Dots More Dense At Upper Or Lower Edge Of Curve (searching Algorithm)?

Mar 2, 2011

This question may be off-topic. If it should be posted in another place (even on another board) For some given curves (see sample below) I have to quantify whether the red dots in some regions of the curve are more dense at the upper or lower edge of the curve. Which algorithm might be adequate to perform this task? The curves are constructed from measurements. (No mathematical formula behind it.) Every data point has two dimensions: A value in the range 4000-7000 and a second value 0-255.

View 4 Replies

Compare Each New (small) Overhead Map Section To Larger Map / Find What Edge It Fits On And Copy It Over

Mar 6, 2009

I am working on a program to match overlapping images together to make one complete image. This isn't for panoramic purposes, it is from a video game generated overhead map, so there is no perspective issues to deal with and the overlapping images (gained from screenshots while a player moves) should be pixel perfect (still running tests to verify this, but lets assume they are pixel perfect at this time).

1) I need to compare each new (small) overhead map section to the larger map, find what edge it fits on, and copy it over.On other forums I have seen people suggest taking the bitmap apart in the form of an array of colors, or 3 arrays per image for r, g, and b. I am wondering why this is done instead of directly going to the bitmap object and using GetPixel. Is an Array lookup significantly faster? Speed would be an issue with my program, I would like to do this match as fast as possible, and the overall map could become large, even if I keep making new map sections to manually paste together later.So, faster to loop through a graphic with getpixel, or faster to go through 3 two-dimensional arrays with r, g, and b, or faster to go through 1 three-dimensional array with rgb all inside it?

2) The bitmap object that contains the overall map will keep getting larger. What is the best way to resize that bitmap dynamically?I am thinking of just making a new, larger bitmap when I get near an edge, then using getpixel and setpixel to copy over the old bitmap to the new one. Is there a faster way to make a new, larger bitmap object containing the old one with the graphics class? I admit to finding the graphics class somewhat confusing in how methods on it affect the image object that is defined as it's surface...or something. There might be a faster way with graphics and drawimage, but is that really faster than a getpixel/setpixel loop? Finally, if I do store the graphics data in arrays instead of actual bitmap objects, would redimming the array be the best way? If I need more room at the 'beginning' of the array I would have to make a new array and then copy the data over shifted. And this might involve 3 arrays if it is best to use one each for r, g, b.

View 3 Replies

Making A Form Slide In And Out From The Edge When The Mouse Is Over The Form 'tab'?

Apr 20, 2009

making a form slide in and out from the edge when the mouse is over the form 'tab'?would it be the mousehover event ?And I've tried using the animatewindow api but not getting too far !

View 5 Replies

MdiChild Window Snaps To Edge Of MdiParent Window

May 12, 2009

MdiChild window Snaps to edge of MdiParent window

View 7 Replies

VS 2008 Snap Form To Outer Edge Of Another Form?

May 30, 2009

i want to snap one forms edge to another when within 10pixels of each-other.

I did try a little with LocationChanged event, but i couldn't get this to respind in the way i wanted.

Ideally i want to snap a second form to the rightmost edge of my first form.

View 7 Replies

VS 2008 Finding If An Image Control Has An Image Loaded (flashing An Image With A Timer)?

Aug 14, 2011

I'd like to verify if an image control has an image loaded . If it does , I want to unload that image (and load no image) , but if the image control has no image loaded , I want to load an image . Is it possible ?

If ImageMY.Image.Equals(Nothing) Then
ImageMY.Image = System.Drawing.Image.FromFile("C:ImageBlaBlaBla.jpg")
Else

[code].....

View 3 Replies

Custom Cursor - "Image Format Is Not Valid. Image File May Be Corrupted?

Oct 11, 2011

I created a new cursor (it works properly, I tried it in windows 7) but is not working for me in the program.I took the Windows cursor (aero_helpsel_xl, from C:WindowsCursors) and it appears to me the same error.i use with this code:

Me.Cursor = New Cursor("Patch..")

The problem say:: "{"Image format is not valid. Image file may be corrupted.

Parameter name: stream "}"

edit: I realized what the problem ... It can read only cur files with 24-bit color and lower - but it shows only two colors: black and white.

View 2 Replies

Dispose Of An Image For A Picture Box & Exifworks Class Does Not Release Image File For Deleting?

Jun 14, 2009

I have an app that loads a jpg into a picyure box, then updates exif data in exifworks classThe problem is that when I save the image(from image used for picture box) or class (to save exif data) then try to delete, sometimes I get success, others it won't allow delet I have gone to the trouble of using gc.collect, do events, put the delete in a timer & wait for the delete before continuing & still get the problem

View 7 Replies

Make A Picture Box Image Property Switch To A Random Image From The Resources Folder?

Sep 12, 2009

With a button click event, how do I make a picture box image property switch to a random image from the resources folder?

View 1 Replies

Save Image In Msaccess Database & In The Crystal Report It Should Display The Saved Image?

Aug 28, 2010

i want to save image in ms access 2000 database & i want retrive it in a crystal report in vb.net 2005

View 8 Replies

VS 2005 Windows Image Acquisition :: Transfer Image From Camera To Hard Drive?

Jul 3, 2010

I've been searching for hours tonight searching existing posts, other websites and all i can find are examples of how to capture a image from a webcam.Does anyone have any code that simple talks to the camera device via WIA, and then saves every image found on the device to a hard drive?I found this code below. Credit i cant tell you as i have a bunch of different flavors of code, but this only saves the file as a tmp file, and not the actual image file i expected after selecting?

Imports System.Drawing
Imports System.Runtime.InteropServices
Imports WIALib

[code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved