Way To Manipulate Alpha Values In A Bitmap?

Aug 14, 2011

This is a follow on from a recent thread

View 3 Replies


ADVERTISEMENT

Most Efficient Method To See If Alpha Channel Is Used In A 32 Bit Bitmap?

Mar 18, 2011

url...But what I'm looking for is just see if any alpha (0-254) is used in at least one of the pixels. Would the Bitmap.Lockbits and BitmapData method be the most efficient (speedy?) or is there another way. I've tried toying around with ColorPalette and the Alpha flag, but never could figure it out (and even if it is a way to check to see if the alpha channel is used at all).

View 5 Replies

Overlay Text, Bitmap With Diff Effects (alpha) Using DX?

Feb 6, 2011

I need to overlay the text, a movie or bitmap over a video.It would be possible to use VMR9 filters, but at playing of a wide video, for limits of a black square, it is impossible to overlay in out of video square range.

View 5 Replies

.net - Know If PNG Has An Alpha (or If The Alpha Is Completely White)?

Jan 13, 2010

I have PNG and need to know if it has an alpha (or if the alpha is completely white)? How can I accomplish this in vb.net code.

View 1 Replies

System Memory In Bitmap - Using Bitmap To Show Picture Box Like Slideshow Using Timer

Jul 3, 2011

I'm using Bitmap to show picture box like slideshow using Timer. For each timer interval, I've to go for new instance of Bitmap, there System memory increases to 1MB, How to resolve this, 'BG is picture box

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tic Dim img As Bitmap

img = New Bitmap(System.Drawing.Bitmap.FromFile(FileIO.FileSystem.GetFiles

[CODE]...

View 1 Replies

Use A ToolTip Directly To A Bitmap Object (System.Drawing.Bitmap)?

Dec 15, 2010

I'm trying to use a ToolTip directly to a Bitmap Object (System.Drawing.Bitmap), aparently I can't do this because Bitmap isnt a Windows Control.

View 1 Replies

Create Monochrome Bitmap From Semi Transparent Bitmap?

Sep 17, 2011

how can i create a monochrome bitmap from a semi transparent bitmap in vb.net? the bmp is for a transparency mask image for an icon i'm trying to create with the CreateIconIndirect API function.

i'm using vb2008 .Net3.5, but i would prefer an answer that would also work in vb2005

View 9 Replies

Extraxct A Rectangle Bitmap From A Big Bitmap?

May 26, 2011

Here is a short program to demonstrate my question. I just want to extraxct a rectangle bitmap from a big bitmap.Code as follows:

Private
Sub Button3_Click(ByVal sender
As System.Object,[code]....

Execution stops when hitting the Dim cloneBitmap statement, which should have created a bitmap out of the rectangle cut out.The message is:

"MissingMemeberException was unhandled.

No default member was found for type 'bitmap"

I just don't get it. Seems that the method Clone(Rectangle, PixelFormat was not found.

View 8 Replies

Parameter Is Not Valid - Bitmap Bmp = New Bitmap()

Feb 10, 2010

I have a grass image located here in my directory. I want to just create a Bitmap, but I am getting an error. (Parameter is not valid.) Immediate Window: A first chance exception of type 'System.ArgumentException' occurred in System.Drawing.dll

[URL]

private void Form1_Load(object sender, EventArgs e)
{
Bitmap bmp = new Bitmap("grass.jpg");
}
bertino

View 3 Replies

Get Alpha Value From ARGB?

Feb 11, 2010

1: Start with bitmap in picturebox colored white2: Draw a filled rectangle (50,50,100, 100) Color black - ARGB (255,0,0,0)3: Draw a filled rectangle covering black rectangle (25,25,150, 150) Color blue, with Alpha set to 100 - ARGB (100,0,0,255) -because of 100 Alpha setting the black rectangle is visible through the blue rectangleProblem : Using bitmap.GetPixel on the blue rectangle (over white background) the result is ARGB(255,155,155,255) -an Alpha value of 255. The new color loooks the same but is not transparent.Question: How to find Alpha(transparency) value of pixel

View 7 Replies

How To Strip A String Of All Alpha's

May 26, 2011

Dim phoneNumber As String = "077 47578 587(num)"How do i strip the above string off every character which isnt a number. So only the numbers are left and then check to make sure it is 11 characters long?

View 4 Replies

Per-Pixel Alpha Transparency?

Nov 17, 2011

I'm trying to create a program using Visual Basic .NET 2010 that alters the use of my media keys - Volume up, Volume down, Play, etc. All of the example I have found don't seem to compile quite correctly in 2010. Don't get me wrong they run fine and look exactly as specified but the problem is that the form cannot be edited because it claims the designer code is ill-formatted or something along the lines of that.

Can anybody possibly spare a project or form that has perpixel alpha transperancy?The only thing i want to do is show an overlayed png that has an alpha channel, on the desktop. The form border style will most certainly be "NoBorder"

View 1 Replies

Red Color Of One Image To The Alpha Value Of The Second?

Jun 30, 2009

I am trying to create a function that would take 2 images. 1 of the images is a grayscale image and the other is a normal image. What i want to do is apply any of the R or G or B of the grayscale image (in grayscale image r=g=b so it makes no difference) to the Alpha of the second image. i DID succeed on it. However the code is EXTREMELY slow. It takes 1 second to perform it. And i have to perform the function atleast 30 times a second (it will be outputting to a Decklink card). Here is the code:

public function createOverlay(ByVal Main as Bitmap, ByVal Key as Bitmap) as Bitmap
For index as integer =0 To (Key.Width*Key.Height)-1
Dim crntX= index Mod(Key.Width)

[code].....

This function will have to run infinitley until the user presses stop and keep updating the output buffer. How can i make it faster? ( i need at least 30 executions per second)

View 5 Replies

Support For Alpha Transparency?

May 2, 2010

I would like to drop a few buttons onto a picture box or a container control that has a background image set.

I would like to have the button's image be an alpha PNG file.

I can manage the mouse over and click such that the button behaves exactly as one does on a web page.

I struggled with it in vb.net 2005 with no luck. If you take a PictureBox and lay it on top of another PictureBox, and set its images to alpha PNG's, and its background to transparent, then the form shows up in the alpha blend, not the other picture box.

And if i accept that i am limited to the background of the form, then it's performance then becomes unacceptable.Since i can Graphics.DrawImage onto a PictureBox's image fast, i assume that the folks at Microsoft must have decided to use the form's background (and slow painting, and not the other controls and the z-order), by design. I cannot for the life of me figure out why they have made that choice.

So my question is this:Does vb.net 2010 support the layering of controls that supports alpha transparency, and can we now create a custom-control with a transparent background?

View 4 Replies

Wolfram Alpha API Wrapper For VB Not Working For C#?

Jan 29, 2011

I'm using the Wolfram Alpha API wrapper for .NET at this location http:[url]......However it's written in VB.NET and written for version 1.0 of the API. It's unusable.

View 1 Replies

Alpha On ListViewItem ForeColor / BackColor?

May 25, 2009

I've been tingling with the colors of listviewitems.For the most part, they work great, but I can't set alpha:

Me.BackColor = Color.FromArgb(100, 40, 40, 40)
Me.ForeColor = Color.FromArgb(1, 255, 255, 255)
Me.BackColor = Color.FromArgb(100, 40, 40, 40)
Me.ForeColor = Color.FromArgb(100, 255, 255, 255)

The result of any of these two lines is exactly the same ( no change in alpha ). The colors take ok though.

View 9 Replies

Alpha Transparent PNG Form Too Slow?

Mar 5, 2011

I have problems with transparent form problem is that its too slow example if i click on button where it should just switch another panel control it takes 3-4 seconds because of redrawing [url] so at form load is called redraw() and if i click on a button and panel is switched i again call redraw() form load 6 second switching panels 3-4 seconds

View 1 Replies

Pixel Multiply Blending With Alpha?

Aug 25, 2011

I am going to blend two images together using multiply blending, and will iterate through all pixels. I have search in wikipedia that the calculation of multiply blending is:

resultRGB= src * dst / 255

but it didn't mention about alpha, how does alpha affect the result?

For y = 0 To fsrc.Height - 1
For x = 0 To fsrc.Width - 1
Dim d As Color = fdst.GetPixel(x, y)
Dim da = d.A / 255, dr = d.R / 255, dg = d.G / 255, db = d.B / 255

[code]....

View 2 Replies

Split String At Alpha Character?

Mar 3, 2011

I have a string that I need to split. I need both parts of the string returned.

I need to split the string after the last alpha character and create a string array from the 2 seperate results.

The string will always varry, but there will always be at least 1 alpha char at the beginning of the string. Here are some examples:

AB1/2
Should return as "AB" and "1/2"
ABC1 1/4

[Code]....

View 10 Replies

Visual Studio And Alpha Backgrounds?

Jan 12, 2011

Seen this question asked a lot but can't seem to find an answer. So here it is. Can you use a PNG with an alpha channel as the background image for a VB app? I don't care about changing the shape of the app rectangle is fine. They just want to use a character with a drop shadow behind him as the background for the app.

View 1 Replies

VS 2008 Sorting Alpha - Numeric?

Jan 17, 2012

How can i sort the following

2 Module for Drawing
6 Module for Typing
5 Module for Maths

[code].....

View 12 Replies

Creating .BMP File From Bitmap.Save(Path, ImageFormat.Bmp) Differs From Using Bitmap.Save(Path)?

Oct 1, 2011

The code below reads an Icon from an .ico file, converts the Icon read to a Bitmap and saves the bitmap using:

Bitmap.Save(PathA)
Then does:
PanelShowWrittenIconA.BackgroundImage = New Bitmap(PathA)

[code].....

View 2 Replies

Alpha Numeric Sorting For Binded DataGridView?

Dec 9, 2010

I am using VB.NET 2005 and my problem is to sort binded DataGridView using numeric sorting (but for strings). As i understand problem is the same as in:http:[url].......or in http:[url].......My DataGridView.Datasource = DataTable. I want DataGridView to be able sorting numericaly when Column headers are clicked. This common function must be very easy, but unfortunately it is not :(. How can i get write sorting? I don't find answer in internet.Link1 is without explanable and i think it is for unbinded DataGridView and link2 is for for C+ or C#.

Examples:

Real Sorting when clicked on "Ports" header (other columns need write sorting too):
"COM1"
"COM10"[code].....

View 3 Replies

Checking Password Field For 1 Numeric And 1 Alpha?

Feb 25, 2011

I have a textbox that acts as a password field. It is supposed to contain a value at least 8 characters long and not greater than 12 characters in length. I need to construct an if statement that checks to see if there is at least 1 numeric character in the string and at least one letter in the string.

View 4 Replies

Convert Picturebox Image To Alpha-blending?

Apr 12, 2010

I am working on a project that I wish to convert the picturebox image to acting as glass effect. What I mean that I would be able to see any controls behind the picturebox control. Something would be like this:[URL]..

View 7 Replies

Draw Text On Alpha Blended Form?

Mar 2, 2011

how to draw text on alpha blended form?

View 2 Replies

Input Events With Per-pixel Alpha Forms?

Sep 28, 2010

I am creating a project with a maximized per-pixel alpha form. However, the normal input events (MouseDown, MouseWheel, KeyPress, etc) are never raised. I've been able to create some bare-bones functionality by overriding the WndProc method, but some things elude me. For example, I want to detect mouse wheel scrolling. When I check for the mouse wheel message, it works fine. Then I try to use the GetLParam function to get a MSLLMOUSESTRUCT with the scroll data. However, when I try to use it, I always get an error:"Attempted to read or write protected memory. This is often an indication that other memory is corrupt." What can I do?-Must Program! Error: Not enough time to program

View 1 Replies

KeyUp Event If Keycode = Alpha Or Numeric

Apr 28, 2010

[Code]....

whats the simplest way to achieve this? is there a built in value for this or regular expressions?

View 4 Replies

Picture GetPixel And SetPixel: Include Alpha?

Jan 6, 2011

I am trying to use GetPixel and SetPixel to copy the contents of one picture to another (I know there are other methods to do so, but there are reasons I want to try this ;D)Anyway, the pictures are .png images, so they include transparency settings.

But for some reason, it seems like when I use GetPixel & SetPixel to put one image over another, it seems the second image completely replaces the other one. I mean, it seems the transparency settings are not respected when I use GetPixel & SetPixel.Both images have the same size. Both have transparent areas.

View 1 Replies

Sort An Alpha Numeric String Array?

Nov 22, 2010

dear all i have a list<string> which has the following c1, c1a, c30, c3a, c2,c4b ,c10b,c10a

i cant use the in built sorting function because it gives me in this order

c1
c1a
c10b

[Code]....

ie i want to sort based on second intiger in numeric order ie 1,2,3,...10...30 and then the third a,b,c etc for example c10a,c10b,c10c

View 8 Replies







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