Jump to content
Xtreme .Net Talk

henkya

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by henkya

  1. Actually that's what i did... sorry for the confusion on my previous wording protected override OnPaint (balbala... couldn't remember the details e) e.Graphics... (this is the one that I used)... so any suggestion on how to create a customize picturebox ?????
  2. okay.... I stopped using the picturebox to draw my image anymore. What I did is I used the a panel, overrides the OnPaint event for that panel. in the OnPaint Panel I just create a graphics object of the Panel Control and call the graphics.DrawImage() method. So based on the scrolling position I am able to draw a portion of the image which improves the loading time and performance alot. But now how can I make the scrolling to be smooth. You mentioned sometin' bout "Caching" ?? Any helpp...?? Again thanks for the reply.
  3. So is there anybody out there that can give a suggestion on how to create a custom picturebox .. plus .. the image files that i'm trying to read is only about 1Mb in terms of Byte size. (it's in jpeg format) and it's even smaller in Gif format (around 500 kb). So size wise it's not really that big
  4. Hi, I am developing a tool that functions somewhat similar to MS Paint. I got all the functionality to be working fine. My problems arise when I have to edit huge image files (8000 x 4000 (jpeg format) around 1 MB). When I try to load the image into my picturebox, it takes a really long time. Even after it finish loading the picture, When ever I scroll over the picturebox, it takes forever (since it's redrawing). Is there anyway that I can make the image loading to be faster, the most important thing is, is there anyway that rightafter i finished loading the image, the picturebox don't have to redraw it self again everytime we scroll the control. The way I design the picture box is . I put the picture box on top of a panel which have the AutoScroll Property set to be True. And every time I load the image, I do this: Image i = Image.FromFile("test.jpg"); PictureBox.Width = i.Width; .... same thing for height..... PictureBox.Image = i; I tried opening up MS Paint and use it to open the Big Image File, and while it takes quite a while to load it but right after it finished loading the picture, you can scroll around the image with ease Sorry if I can't provide any specific chunk of codes, but I 'll be more than gladly to email it to you if you're willing tohelp me out Urgent response is greatly appreciated Henky
  5. Hi I 'm working on a C# project that involves creating and manipulating a bitmap Image object and saving the created image into a file. I am done with that part. Right now I am working on trying to save the Image Object created directly into a Database file (I'm using Access Database). I don't have much background in programming in .Net, but Iam just wondering if there's anyway in saving the Image object into an access database directly. (and also retreiving it) I know that C# can connect to the databse using ADO.Net oledb and so far all the examples that I found only deal with text data (i.e name, address etc. Any help would be greatly appreciated. Henky
×
×
  • Create New...