Search results for query: *

  1. martinandrovich

    Question Dynamically edit embedded files/resources

    Hey guys, I'm having quite an itch here. My goal is to somehow edit an embedded file/resource (text) during run-time; or after, as long as it's attached to the same EXE. I need this for a project I'm working on, and the point is to have an EXE file that can be transferred (mail, USB etc.)...
  2. martinandrovich

    DirectX Free Hand Drawing

    Hello forum, I wonder, if there is any way I can use DirectX to do Free Hand Drawing on a PictureBox or etc? I need to use some hardware accelerated graphics, to quickly paint on the PictureBox. A "simple" GDI+ Drawing isn't fast enough for me :( Any suggestions?
  3. martinandrovich

    Question Faster Paint Software

    So, I have been working a bit on some code, and I came up with the idea to "predict" the users movement direction. So I would first have to determine the direction of the mouse, and then add some pixels to the direction. My code is kinda working, but not exactly: Sub AddPath(ByVal LastPoint As...
  4. martinandrovich

    Question Faster Paint Software

    I edited the "engine" to first draw in HighSpeed, and then to redraw in HighQuality, but it still doesn't update as fast as MS Paint. The path can't keep up with the cursor, it's like a millisecond behind, when for example MS Paint draws instantly?! This might not be too noticeable for a user...
  5. martinandrovich

    Question Faster Paint Software

    So, I implemented the new engine, and it seemed to work better than the old, but still not as good as for example Microsoft Paint. I think the way MS Paint does it, is that it draws/invalidates with low quality graphics, but as soon the user stops drawing, it re-paints it with the HighQuality...
  6. martinandrovich

    Question Faster Paint Software

    Wow, thanks a lot mate! I will try this software using our SmartBoard tomorrow, and analyze it's performance! How can I actually include an "Undo" function? I have set the KeyPreview of the form to true, but what code do I insert, to actually undo? :) Thanks alot!
  7. martinandrovich

    Question Faster Paint Software

    50ms is a bit too laggy, If I just use the imgBoard.Invalidate() method, it draws the area way too slow, but at 10ms it works quite okay. Then I did some research on the internet, and found out that the Invalidate method can Invalidate regions - could this make my code more effecient? Private...
  8. martinandrovich

    Question Faster Paint Software

    But if I don't update the control so often, wouldn't that make the program slower to draw my path onto the image? How can I invalidate the parts that I actually need to invalidate? Would a timer make it better or worse?
  9. martinandrovich

    Question Faster Paint Software

    But is it bad, that I call use the Refresh method to raise the Paint event, and first THEN draw on the image? What If a drew directly from the MouseMove event, instead of raising the Paint event?
  10. martinandrovich

    Question Faster Paint Software

    So should I use the "Invalidate" method instead of? And where should it be called from?
  11. martinandrovich

    Question Faster Paint Software

    Hello forum, I have created a paint program, which I use with a SmartBoard to draw on. But when I draw, it reacts much slower than a usual Paint Program (MSPaint). I have a PictureBox which I draw on,to capture the mouse path. Every time the mouse is moved, the path is added to the "mousePath"...
  12. martinandrovich

    Question Add new page as image (?)

    Seems a bit too complicated, and I don't think I will use it :) I have created a code, which saves the pages as images into a folder, and loads them as a stream, when I change a page. Now, I need to generate a grid with all the pages as click-able images, HOW THE #%¤§!? ? :D My idea so far...
  13. martinandrovich

    Question Add new page as image (?)

    Aha! Hmm, but what I though of, was just storing each image as a bitmap in a Temp folder :) Because, is it possible to declare variables with dynamic names? Like if i have an integer variable "intPage" and then i would like to create a variable, which is called "Page" + the intPage variable?
  14. martinandrovich

    Question Add new page as image (?)

    Store each file? Aaah, I see. But should I then export and store each image as a .bmp file, or isn't there a way to store them in the cache? Because I know that you can declare Bitmaps in-code, but is it possible to declare them dynamically? :O
  15. martinandrovich

    Question Add new page as image (?)

    Hello dear forum, My question is a bit hard to explain, but I will try my best: Imagine a have a painting program with a PictureBox, which I can paint on. I would like to have the ability to press "Next Page", and the program shall store my current image/page as "Page#" (where # is the...
  16. martinandrovich

    Question Parallel Port Interface

    I have tried that one too, but I could not get the "MSComm" to work... Could I possibly use "System.IO.Ports.SerialPorts" to read/write data to/from the Parallel Port?
  17. martinandrovich

    Question Parallel Port Interface

    Hello dear Forum, I have a problem interfacing with the Parallel Port. I have tried using the "inpout32.dll" to communicate with the port, but it didn't work for me. I have used another program (coded in C++), and I have successfully read the S-port-data - and that's what I mainly need the...
Back
Top