Search:

Type: Posts; User: passel

Page 1 of 13 1 2 3 4

Search: Search took 1.71 seconds.

  1. Re: how can i get the GDI+ declaration functions\types?

    This is an on-going, multiyear project.
  2. Replies
    8
    Views
    202

    Re: convert vb6 program to vb.net

    Type of code is also important.
    Does the VB6 program do a lot of vb6 type graphics, or is it primarily database? Does it use VB6 native file functions, etc.
    The .Net way of doing graphics within...
  3. Re: how can i get the GDI+ declaration functions\types?

    Just as a quick example of compensating for depth, I modified dilettante's code, using the percentage value he used (currently 40%, i.e. the top of the trapezoid is 40% of the size of the bottom of...
  4. Re: how can i get the GDI+ declaration functions\types?

    Points(0): (370,242)
    Points(1): (392,242)
    Points(2): (516,348)
    Points(3): (264,348)

    The points define the red trapezoid, wide at the bottom, narrow at the top. Just try to "fill" the brick...
  5. Re: how can i get the GDI+ declaration functions\types?

    What you did wrong is try to fill a trapezoid area using a parallelogram shape.

    A trapezoid shape is not a parallelogram shape.

    Those are geometric figures. Look them up.

    A trapezoid is...
  6. Re: how can i get the GDI+ declaration functions\types?

    You will get the same code problems using GDI+ as you do now using plgblt, since you are doing the same operation. The DrawImage with an array of points just allows you to do a parallelogram blit at...
  7. Replies
    5
    Views
    292

    Re: The perfect Hex Editor

    I didn't have any specific criteria in mind for "easy search" features, so don't have any examples off hand of something that I was looking for.
    But I think having extra windows that can display the...
  8. Replies
    5
    Views
    292

    Re: The perfect Hex Editor

    I'm assuming he wants to know what features you would like to have in a hex editor, and is planning on writing one to fit the requirements.

    I guess having a convenient easy to use search feature....
  9. Re: Help with an error in a simple mouse simulation script

    Dim screenDC As Long
    screenDC = GetWindowDC(0)

    If GetPixel(screenDC, 808, 717) = "4617881" Then
    Call SetCursorPos(RandomNumber(810, 828), RandomNumber(713, 728))
    Wait (RandomNumber(260, 360))...
  10. Re: Help with an error in a simple mouse simulation script

    You call GetWindowDC(0) repeatedly and you never call ReleaseDC ever.
    So, eventually you have used up every DC available from the pool provided by Windows, so programs can't get DCs when they need...
  11. Replies
    3
    Views
    214

    Re: Question 6.16 in book

    Since the Book is Visual Basic 2012, which is a .Net version, you shouldn't have posted in the Visual Basic 6 and Earlier forum (The last legacy Visual Basic Circa 1998).
    The book is for a eight...
  12. Re: My macro keep on running even though it should stop

    I don't know off hand, but this syntax looks odd. It may inline the else, and then execute the next line, which you wouldn't want.
    So, wherever you use "Else:" I would remove the :, and put the line...
  13. Re: API: what is the best function for draw an image using 4 points?

    I guess since we don't have the code, we can't step through the code to examine the values of the points.
    It doesn't look much like a floor to me.

    Also, the points drawing the red don't seem to...
  14. Re: API: what is the best function for draw an image using 4 points?

    I click on the link https://imgur.com/a/psX89ZW with several browsers and I don't see any image, so I won't bother trying to guess.
  15. Re: difference between ! and . character in the syntax of the VBA identifieer

    The VisualBasic Core language was merged/replaced with the VBA Core as part of the transition from VB3 to VB4 (remember that backlash, i.e. VB4 is so slow compared to VB3...!?), so as of VB4 Visual...
  16. Re: API: what is the best function for draw an image using 4 points?

    If you want to restrict your 3D view to a simple view, like you are walking around on a flat plane, and you only rotate around the Y axis, i.e. only your heading changes, then that can simplify...
  17. Replies
    6
    Views
    479

    Re: Handles Clause on WithEvent

    You did rename the OpenFileDialog1 object to OFGSelectImage, correct? You were suppose to do that before doubleclicking and generating any events.

    Of course I love tutorials that tell you what you...
  18. Re: API: what is the best function for draw an image using 4 points?

    I'm not sure if GDI or GDI+ take advantage of the GPU for most of their functions. To take advantage of the GPUs on a graphics card you need to use libraries that do. If you were using a WPF form,...
  19. Re: API: what is the best function for draw an image using 4 points?

    What does the documentation say?

    Its a polygon, so that means many lines.

    You can pass a number of points to the polygon function.
    The function will automatically draw a line from the last...
  20. Replies
    2
    Views
    200

    VS 2017 Re: Graphics help in Visual Basic

    Kind of depends on how you're doing your drawing.
    If you used Transform.Translate and Transform.Scale to essentially setup your coordinate system to match your drawing area, then you would be doing...
  21. Re: API: what is the best function for draw an image using 4 points?

    Do what you want.

    plgblt is a very simple thing. It can only do what it can do. You can only do what you can do.
    Whether plgblt can be useful to what you want to do, is for you to decide.

    The...
  22. Re: API: what is the best function for draw an image using 4 points?

    plgblt only takes three points.

    You can't force it to take four points.

    You always pass it the first three points, and it creates a parallelogram by computing the fourth point to fit the rules...
  23. Re: API: what is the best function for draw an image using 4 points?

    We don't use four vectors to define the plane, we use four points.

    Are the four points VA, VB, VC and VD that define your plane four corners of a rectangle or square?

    Assuming VA is the "upper...
  24. Replies
    4
    Views
    352

    Re: [Powerpoint]Working with group shape

    What is the value of j when it fails?
    It looks like you are only using 9 groups, not 10.
    Have you created the 10 groups before you start the loop? It can't reference group2 if group2 doesn't exist.
  25. Re: API: what is the best function for draw an image using 4 points?

    The lpPoint array is the array of the first three points of the parallelogram, the fourth is calculated. So they are the rotated rectangle points, when you want a rotated rectangle. But they will...
  26. Re: API: what is the best function for draw an image using 4 points?

    Depends on the language, and the library being used.
    You mentioned API, and if you're talking Windows API, there are a number of APIs functions that can be used.
    If you're restricting yourself to...
  27. Replies
    23
    Views
    1,067

    Re: Why is my Label moving ?

    You're forgetting, I assume, that the first pixel coordinate is 0 (zero) (0,0). The second pixel in x and y is (1,1), etc.
    At 341, there are 341 to the left (0 = first pixel, 1 = second pixel, 340 =...
  28. Replies
    4
    Views
    263

    Re: Visual Basic and Databases

    I don't know what creating "a file" for the files means.
    I assume you may have multiple examples throughout the book, and each example should be created in a separate folder for organization.

    If...
  29. Replies
    23
    Views
    1,067

    Re: Why is my Label moving ?

    Your understanding is incorrect.
    The rotation point of the hand bitmap that you want is at (150, 721).
    That means the upper left corner of the bitmap is (-150, -721) relative to that point {not...
  30. Replies
    5
    Views
    297

    Re: Click event

    If AutoReDraw is True, you don't get Paint events. That is the purpose of AutoRedraw, so you don't have to draw in paint events.
    Oops. nevermind. I see you said AurotRedraw "OR" Paint. Sorry... :o
  31. Replies
    23
    Views
    1,067

    Re: Why is my Label moving ?

    To put the dot in the center, and rotate around it, just determine what the white dot's x,y value is in the image you have. Let's say it is 100,450 for the hour hand.
    To draw the hour hand with the...
  32. Replies
    23
    Views
    1,067

    Re: Why is my Label moving ?

    I already did several examples years ago.
    https://www.vbforums.com/showthread.php?765549-Draw-a-line-and-set-the-angle&p=4684863&viewfull=1#post4684863
    If you click on the minute hand or hour hand...
  33. VS 2015 Re: How to Handle Serial data event and new frame event using Aforge library at same

    If that is the complete code, then I guess you're out of luck.

    The following won't compile in any version of VB I tried.
    public boolean running = false

    The following is also a syntax...
  34. Re: This may be a tough question for the gurus

    Well, I think perhaps the wording was a bit misleading, because turning a device off is not the same as turning the power off to a device.
    Perhaps what you are asking is if there is a way to turn...
  35. Re: Mistakenly removed Form1 and want to re-add it to the project

    That's why when things go wrong, I like to copy the directory to a new directory to preserve whatever state the project is in before I start tinkering with it. If things get worse, or I find out how...
  36. Replies
    8
    Views
    496

    Re: [MSComm] receiving binary and ASCII data

    But it seems odd to me that you would convert it to a string, and then parse the string if it contains binary data.
    You might want to convert it to a string for display, if you think there is some...
  37. Replies
    4
    Views
    277

    VS Code Re: wrong regcognize string in only one pc

    Works for me. But my code may be different than yours. What do you think?
  38. VS 2012 Re: Visual Basic 201 How to Program Deitel Exercise 5.5 Retail Sales Calculator Appli

    What part doesn't look like what is in the book?
    If you're talking about the window framing itself, Windows 10 doesn't look like Windows 7, so that is a characteristic of the operating system, not...
  39. VS 2015 Re: How to Handle Serial data event and new frame event using Aforge library at same

    There is no loop in your Draw_Function_For_Thread so you start the thread, it runs through and exits and that is the end of the thread.

    You used ReadWait to pause your SerialPort reading thread,...
  40. VS 2015 Re: How to Handle Serial data event and new frame event using Aforge library at same

    Since you're drawing into a bitmap, you could do all that drawing in a background thread.
    You would only need to invoke when you wanted to update the panel with the result.

    Your drawing process...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width