Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Shailesh Appukuttan

@Shailesh Appukuttan
About
Posts
6
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • VC# - Draw Image a GIF animation using code
    S Shailesh Appukuttan

    I have a GIF animation which i want to paint in a picturebox. I know that a picturebox is capable of displaying GIF animations when you preload them in the designer etc (i have tried it). But I want to paint it (DrawImage it) on the picturebox control at runtime (I dont want to assign an image directly as it wont work for my project). Is there any way apart from using a timer to alternate between the various images of the animation. Thanks for all the help!!

    C# csharp help

  • VC# - How to draw a GIF animation on a picturebox control
    S Shailesh Appukuttan

    I have a picturebox (imgViewer) which is displaying an image (a map). Now i want to display another image (a smaller one) on top of this image. But this smaller image is a GIF animation of a blinking siren. But when i paint it on the picturebox, the overlapping of the two images is being displayed properly, but it comes as a static image with only the first frame of the animation being shown. This is the code I am using: private void btn_Path_Click(object sender, EventArgs e) { Bitmap path = new Bitmap(@"C:\Engg\Siren.JPG"); Graphics graph = Graphics.FromImage( this.imgViewer.Image ); graph.DrawImage(path, 0, 0); graph.Dispose(); } (Thanks to CKnig for the code above) How can i make the GIF animation properly display as I want the blinking effect. Thanks in advance!!

    C# graphics csharp data-structures tutorial question

  • VC# - Drawing an Image to a Control
    S Shailesh Appukuttan

    hey awsome dude.......... ur brilliant. it worked!!!!! could u do me a favour and tell me what the difference was. I mean why was it working for the form and not for the picture box. they are both controls isnt it. Thanks once again!!!!!

    C# graphics question csharp data-structures

  • VC# - Drawing an Image to a Control
    S Shailesh Appukuttan

    I have a picturebox (imgViewer) which is displaying an image. Now i want to display another image (a smaller one) on top of this image. This is what i was doing: private void btn_Path_Click(object sender, EventArgs e) { Bitmap path = new Bitmap(@"C:\Engg\Path.JPG"); Graphics graph = this.imgViewer.CreateGraphics(); graph.DrawImage(path, 0, 0); graph.Dispose(); } But nothing happens when i push my button (btn_Path). But when i change the code to draw on my form (instead of my picturebox), it works: Graphics graph = this.CreateGraphics(); it properly paints on the form. What is wrong????? How can I paint on my picturebox which is already displaying an image?

    C# graphics question csharp data-structures

  • Image and Viewport - Drag Move, Pixel Positons etc
    S Shailesh Appukuttan

    yes yes the image is totally mine. i will have total control over it. SO what do i need to do........... also please give me some links to stuff that you feel i could learn from or make use of. Thanks a lot..........

    C# help html database com tutorial

  • Image and Viewport - Drag Move, Pixel Positons etc
    S Shailesh Appukuttan

    Hello everyone, I need some help. I have been working on it for some time but havent been able to think of any solution. Even had thought of making do without it, even though it was a major part of my project. To be honest, I am a beginner and hence unawares about many of the stuff. So here is my problem: I am working on a "PUBLIC TRANSPORT INFORMATION SYSTEM" (In India we dont have one yet for most cities). Most of the stuff I have been able to do, but I am stuck at one point. I want to display the selected route between two places on the map. I want the map to be drag and move (like we have for pdf files). This is since the map of the city is extremely large (3 feet * 2 feet on paper, which I plan to scan. I may reduce the size a little, but not by much as I want the lanes and small roads to be visible with their names). So, I want the following things to be done (in order of their priority). Please help me out, I really need it. 1> Firstly, I want the large image to be shown in a small viewport using drag and move so as to allow the user to wander through the whole map of the city. A pic of what I mean is shown here: http://www.geocities.com/this_is_shailesh/index.html 2> Secondly, I want to be able to move the viewport to a specific area of the map. For e.g., when the user selects a particular place on the map in a drop down list, I want the viewport to move to that part of my map which shows that location. Currently, the only way I thought it could be done is by mapping the pixel positions for all the places in the drop down list and then moving the viewport such that the corresponding pixel position is the center of the viewport. But I admit, I really dont know how to implement this. 3> Finally, if its posible, is there any way by which I can highlight the selected paths. My map will be static. So I was thinking on the lines of placing markers on all the stations (overlapping exactly on top), whose visibility can be adjusted on/off. When they are a part of the route, their visibility will be ON, and when not they will be OFF. The markers could be plain coloured circles, so that a series of dots (or circles) will indicate all the stops/stations along the selected path. But this also I dont know how to implement in code. I have no clue how I can make these markers overlap the stations, esp coz the map will never be shows in its entirety at any time. I mean how do I do the pixel positioning with respect to

    C# help html database com tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups