Graphics And Animation Info

Aug 31, 2011

I am looking for some info to do some animation. Fairly simple stuff like dealing and flipping over playing cards, tumbling dice and such. I normally work with logic and data and do not know what would be the best approach to do a good looking animation like these. Does anyone know of some good sources on the net or even better some sample code to do this sort of thing or get me started.

View 14 Replies


ADVERTISEMENT

VS 2008 Moving Graphics Animation?

Jan 2, 2010

i recently posted a thread about the same project, but decided this was a more specific question, so i decided to open a new thread My question regards the graphics class in visual basic 2008. Ive searched the internet low and high for an answer to this, but i cannot find anything! I am attempting to 'shoot' a circle drawn on the form when the user presses the 'r' key. if a string property is set to right, the graphic should be drawn, then updated to different x coordinates based on an interval. if the property is 'up' or 'down' then the y coordinate of the graphic should be changed based on another interval. Now i cannot use one preset timer, because i would be able to shoot only one bullet at a time, which would not work!

Does anyone know how i can either create an array of graphics(bullets) and add to the list every time the user presses r, then using one preset timer, update them all, or simple create a timer every time a bullet is created, then update the bullet position with its own timer.

View 13 Replies

Interface And Graphics :: Multiple Images To One Gif Animation?

Nov 16, 2010

I have multiple bitmaps(i) in arrays, and I want to know if I can save each of these bitmaps into on animated gif file. I thought about using image.saveadd() but i'm not sure if that will work.

View 2 Replies

Writing Info To And Getting Info From .text File Using A ListBox's Display

Jul 31, 2010

I am working on a media player, and I would like to setup a local playlist feature. I am using a single ListBox and its "Display-" and "Value-Member" properties. The display is the song's Artist and Name, and the value is the song's file path (i.e 'C:UsersUSERMusicetc.').To write the file path to the .txt file, I believe I can use the following code:[code]

View 18 Replies

Create Quick Info And/or Parameter Info For Own Code?

Jul 23, 2009

how to create Quick info and/or parameter info for own code?

View 6 Replies

Read Info From A Text File And Add Info To A ListBox?

Jun 22, 2011

I am making a program, obviously, and I require some assistance. I found an explanation on how to read information from a Text file and have modified it for my needs. Here is my (modded) version:

Public Function GetInfo(ByVal playlistname As String) As String
On Error Resume Next
Dim PlaylistInfo As String

[code].....

View 6 Replies

VS 2008 Add More Than 1 Info In A Database, But The Rest Of The Info Stays The Same?

Jan 7, 2010

I'm making a database app. I've finish the search, add new, and add function. What I'm trying to do is to expand the functionality of the add new item function.

View 2 Replies

VS 2010 - Fill Out A Form With Certain Info, Put The Info Into An Array?

Nov 17, 2011

I am trying to do is fill out a form with certain info, put the info into an array, and write it to a listbox using loops, arrays, and maybe a function if I need one. This is for VB2010 and here is what I have so far... I think there are ways to make it shorter but I cannot figure it out.... maybe just brain dead from all the coffee I have been drinking!

[code]...

View 1 Replies

Application.Info Not Showing Correct Info?

Sep 6, 2011

under my project I have the following

However when I use this code.

lblABOUT3.Text = "Version : "
lblABOUT3.Text += My.Application.Info.Version.Major.ToString()
lblABOUT3.Text += "." & My.Application.Info.Version.Minor.ToString

[Code]....

View 8 Replies

Correlate Textbox Info To Listbox Info?

Mar 17, 2009

how to correlate info from a textbox based on a listbox item selection. For example the user will select an item from the listbox, enter say the length of a song in the textbox say 2:00 for song #1, select say song #2, enter the song time for that song say 3:00, click on song #1 again and have the same textbox display the length of that song and be able to do that until there are no more songs on the list.

View 5 Replies

Rendering Graphics Efficiently - DirectX - Graphics Card And Use Of DirectDraw Or OpenGL

Sep 23, 2011

We have a GIS application that has some performance issues. It creates and sends an image to a web browser. We start with a Bing Maps imager, add complex polygons (complete with transparent fill), save the finished image as a PNG, and send it to the browser.

The idea has come up that we could possibly install a graphics card and use DirectX or OpenGL to improve performance. I believe this would be the case even though we ultimately generate an image instead of sending the data the the screen. I believe our processes could still make use of the API and the hardware acceleration it provides. Our process is not unlike what CGI film makers do to render individuals frames of a film, though we simply render a single image and send it, as opposed to the hundreds of thousands of images needed for a single CGI film.

So my question is: would a powerful graphics card and use of DirectDraw or OpenGL provide us a worthwhile performance boost? It can take us 20-30 seconds to render a more complex map. Which is a long time to wait on a web page...

View 10 Replies

Interface And Graphics :: E.Graphics.Drawstring Length Overflow Page?

Nov 19, 2010

Im working on a project that needs to print a report of one client.Everything went smooth untill i came across my multiline input text data.When i display it in the PrintPagePreview the text go's outside my page. Even when im printing it only the halve of my text is displayed. I googled and looked everywhere but i can't get a clear fix for it.

[Code]...

View 3 Replies

Interface And Graphics :: Passing Bitmaps & Graphics To Subroutines As Arguments

Jan 22, 2011

I used to program with Visual Basic 6, so I have alot of old programs that I'm updating, plus I'm learning the new VB2008 methods. I'm writing a program that replaces the old "BitBlit" function which is no longer supported by Visual Basic 2008. It involves three picture boxes, one holds the sprite bitmap, a second holds the mask (silhouette) of the sprite bitmap, and a third has a background image.

[Code]...

View 3 Replies

Interface And Graphics :: System.Drawing.Graphics.DrawString On Other Window?

Aug 14, 2009

drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.

View 2 Replies

Interface And Graphics :: Creating A Class Holding Some Graphics?

Jan 12, 2011

Ok, I want to create a class that will handle a special rectangle graphic.In my form, I want to have two of these special rectangles. So, basically, I need two instances of that class in my form, right?I manage to initialize two, alright. But, how exactly am I supposed tomanage drawing/graphics etc in a class, and the results to be displayed in my form?

View 13 Replies

Interface And Graphics :: Error - Graphics Paths For Designing

Oct 29, 2008

Using graphics paths for designing...but am getting an error when trying to add a shape to : _shapelist.add(createshape())

It says : Value of type 'system.drawing.drawing2d.graphicspath' cannot be converted to '1-dimensional array of system.drawing.drawing2d.graphicspath'

View 2 Replies

Graphics & RedrawWindow API, Clearing Graphics On The Desktop?

Sep 27, 2010

[code]...

ok, i know the code is a little rough, but it should be good to give you an idea of what im trying to do, if not i will still explain.simply draw 2 lines one from left to right, another from top to bottom, intersecting through the tip of the mouse.ok, theres no problem there the lines draw perfectally the way i want them.... BUT! now heres the issue im having.i cant get rid the previous lines.i did a bit of good old "Google'ing" and ran across a few links that all pointed me to the ReDrawWindow API, so i tried (as you can see in the above code) but i just cant seem to get it worked out.

View 5 Replies

Interface And Graphics :: Draw On Tabpage's Graphics?

Jan 19, 2011

So I decided to make my famous tile selector project, but instead of drawing in a form's graphics, do it inside a tabpage.Well, I managed to get it working, but it seems to... flicker.Normally, setting the form's DoubleBuffered property to True would help a lot there, but apparently, the tabpage has no such property.

When I invalidate the tabpage, I draw two images and fill one rectangle.Following past advice, those two images were created before, just once, and are stored in a variable so I don't create them every time I invalidate the tabpage.

View 1 Replies

Interface And Graphics :: Save Graphics As Png With Transparency?

Aug 1, 2010

Ok I have this: This makes a sub called 'graphicspaint' then writes "demo version" to a picturebox1

Code:
Imports System.Drawing
Imports System.Windows.Forms

[code]......

View 8 Replies

Interface And Graphics :: [VB2010] - Some Graphics Effects?

Dec 5, 2011

i whant do my own shadow effect. i can do the shandow. but how can i plus 2 bitmap images(1 above the other)?

View 15 Replies

"Dim Temp As Graphics = E.graphics/

Oct 20, 2011

My application is all centered around one form with lots of graphics drawings on it.All these drawings take place from within a paint event handler. However, the amount of code within that sub is becomming unwieldy.I have been trying to move sonme of it to another class and use the "dim temp as Graphics = e.graphics" construction to continue to draw graphics. However, I get all kind of argument exception runtime arreors when doing so (and I do not get these with the same graphics operations directly from the original paint event handler. I have also tried to pass on the original e argument, but with the same result.Is my conclusion that there is no solution to this so to continue with the unwieldy amount of code,correct, or am I mistaken somewhere. the "dim temp as graphics = e graphics" is recommended.

View 6 Replies

Interface And Graphics :: Keep Graphics Over Image

Oct 28, 2011

I load my picturebox with a jpeg. If I put my DrawObjects() sub into picturebox paint event.When ever a picturebox.refresh or picturebox.visible = true (vb.net seems to draw my DrawObjects() first, then load the jpeg Image over my drawing - erasing drawing) Is there a way to get the picturebox to redraw the jpg image first then draw on it, in picturebox paint event?

View 10 Replies

Use The Graphics Accelerator To Process Graphics?

Aug 21, 2008

In a Previous Thread, I asked some questions about how to create graphics. Everything was OK, until I realized that the graphics are really slow. While I was trying to find out what the problem was, I realized that the processor load was about 50% and my graphics card was not used at all. So doesn't Visual Basic use the Graphics Accelerator to process graphics? What I made is not a real program. It's like an experiment (I tried to make an image flip). Here is the Code:

[Code]...

View 1 Replies

Cookie Info - Get Info From Stored Cookie On The Local Machine?

Sep 17, 2011

Can I get info from stored cookie on the local machine. I have a Webbrowser control in a winform, and I would like to output data from a cookie to a label or so.

View 4 Replies

Add Animation To My Game?

Apr 20, 2010

I'd like to add animation to my game. ( a windows form app.)

I already have the frames for him to be animated, I just don't know how to animate him. (I have no experaince in game animation)

View 2 Replies

C# - WPF Grow Animation

Nov 12, 2011

I am looking for a nice way to display some help messages in my application and I was looking to have the user click a button. This would then trigger a area at the top to grow and show the help section. The only problem is i am not sure how to acomplish this.

View 1 Replies

Gif Animation Or Using The Timer

Jan 24, 2011

Currently, working on my chess program, I am trying to show a bunch of chess variants in a picture box but i have come to a forked road of either making all the images collectively into a Gif animation using fireworks, or using the timer to shift them one by one. The following code does not work and i am seeking help for a alternative code:

[Code]...

View 1 Replies

How To Create Animation In VB

Apr 16, 2012

Im trying to create a animation of wave from a wave equation but the program only create a vertical line at the left side of my panel this is my code at the moment

Dim timedcounter2 As Integer = tbox1.Text
Dim oldx As Integer = 0
Dim oldy As Integer = 0

[Code].....

View 1 Replies

.net - Color Animation Not Working?

May 9, 2011

I have a button named "b", which background I want to change from black to white, but it doesn't work.

The error:

'System.Windows.Media.Animation.ColorAnimation' animation object cannot be used to animate property 'Background' because it is of incompatible type 'System.Windows.Media.Brush'.

[Code]....

View 2 Replies

2D Tile Animation Layer On A Map?

Mar 28, 2010

(non-coding request)Okay, I have my client, my server, and my map editor...a 2d online game, and yes it's written in VB.NET.I have had a lot of trouble finding anything to do with adding an animation layer something that will flash with a timer to appear as if something like fire is animated. I have a lot done so far and I kinda want to stick with VB.NET working with this.

I'm not really looking for code here, but maybe an idea of "how" an animation layer plays into a map editor and client...specifically what is needed.Running this through my head I believe I am going to need a timer on both the map editor and client, showing and hiding the animation layer...but I don't think it is that easy, and am hoping someone here has an idea of the logic of how this works. I'm almost certain that the timer doesn't go on the server to control this, but am probably wrong.

View 2 Replies







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