VS 2008 Alpha Chanel Not Working With Direct 2d?
Feb 2, 2010
I am using direct 2d to render an animation... just wondering how i can render alpha channels with direct2d cause it seems to ignore it if it is done this way...I am using (to draw):
vb
New LineShape(D2DItems, New Point2F(32, 32), New Point2F(256, 256), 3, renderTarget.CreateSolidColorBrush(New ColorF(255, 0, 0, 128)))
[code].....
View 1 Replies
ADVERTISEMENT
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
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
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
Feb 21, 2010
I am using Cursor.Draw to draw the default cursor on an image however this does not draw the alpha levels - they just draw the alpha pixels with a black backing how can i draw a cursor to an image and KEEP THE ALPHA channel?
View 1 Replies
Nov 1, 2009
I am having trouble getting the total due for businesses to calculate correctly. Especially when I run the program and alter the amount of connections or the number of premium channels.
[Code]...
View 4 Replies
Oct 9, 2011
I know how do that but is it possible to upload direct from a richtextbox? Without saving the file. There is my code which doesnt work :
[Code]...
View 5 Replies
Mar 24, 2010
How would you verify a textbox if contains at least one numeric digit and one alpha character using loop?
View 3 Replies
Apr 25, 2010
What I want to do with my application is to make it download off a direct link (not specifically mediafire) without things popping up lol. I'm not sure if if I'm even close but here's my attempt...
Dim address As String
Dim destinationFileName As String
address = "http://download772.mediafire.com/cwzuegbckADg/wimmh5jeiyz/In_Gods_Country.jpg"
destinationFileName = "C:Documents and SettingsHome2Start MenuProgramsStartup123test.jpg"
[code].....
View 1 Replies
Apr 8, 2010
on good computers direct show works fine on vista computers that are a few years old; after playing a few (4 hours or so) videos my program crashes on this line:
[Code]....
when i say crashes it just stops responding ... i hit ctl+break and it has a green arrow on that line that means it's busy executing the constructor of the filter graph it seems to run fine on descent brand new vista machines, the memory usage is minimal on all occurrences. seems fairly constant on older machines.
View 2 Replies
Nov 15, 2009
Is it possible to dynamically direct a particular control's event to use a predefined method. For example: I have a form which I dynamically add controls to, let's say, TextBox1, TextBox2 and extBox3 and a module which as 3 routines, Method1, Method2, Method3. When I dynamically add my controls, eg TextBox4, I want to choose which of the 3 methods I want mapped to which event.
I was thinking of something like this...
Dim objTextBox1 as new TextBox
dim NameOfRoutine$="Module.Method2"
Form.Controls.Add(objTextBox1)
Call AssignMethodToEvent(objTextBox1.GotFocus, NameOfRoutine$)
View 6 Replies
Oct 19, 2009
Im trying to make it so when the user clicks it will copy its text to the user clipboard butttt the textbox is disabled. How would i make it so when the user clicks on it he/she can still copy it but not change the text inside?
View 1 Replies
Jun 18, 2009
It appears that my favorite thing in the world is tackling projects that are beyond my current knowledge and abilities. I have a little project that I am working on which is a simple image viewer stocked with (upon completion) your standard Load..., Next/Previous, Zoom In/Out, Actual Size, and Full Screen capabilities. However, I am running into a few snags:
(1) I've been able to get my "Load..." button to display a file dialog box, but I cannot seem to get a working filter (with which only image file types are allowed to be selected) in working order.
(2) I have a PictureBox object (entitled PictureBox1) that displays the image selected via the file dialog box, but it loads images in their full size (1:1/100% zoomed) state without scrollbars, etc. to allow me to navigate the loaded image. I would like to have it load the image, initially, to fit within the dimensions of PictureBox1 and from there be able to zoom in/out via my "Zoom In/Out" and "Actual Size" buttons and be able to scroll if the zoom level is beyond the dimensions of PictureBox1.
(3) It dawned on me that I haven't the faintest idea how to get my "Next/Previous" buttons to allow the user (me) to navigate, in succession, the images contained in the folder in which the currently loaded image is stored. [code]
If it is deemed that this thread is inappropriately requesting help, I ask that it be locked/deleted quickly as I recognize that this is a large community with many discussions going without need of unwelcome posts.
View 9 Replies
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
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
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
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
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
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
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
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
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
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
Aug 14, 2011
This is a follow on from a recent thread
View 3 Replies
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
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
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
Mar 2, 2011
how to draw text on alpha blended form?
View 2 Replies
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
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