Search:

Type: Posts; User: boops boops

Page 1 of 13 1 2 3 4

Search: Search took 0.13 seconds.

  1. VS 2022 Re: PictureBox Image - Random Errors

    Don't use System.Drawing.Bitmap.SetPixel, which is notoriously slow. It has to recreate the bitmap each time a pixel changes.

    Instead try the FastPix method in my sig below. Treat the queue as an...
  2. Re: Splitting Bezier curves using deCasteljau algorithm...

    Strange to see a response to a message on this thread posted almost 18 years ago!

    Still, if it's a matter of finding the nearest point along a curve, which rpgNewbie wanted, it's fairly easy to...
  3. Thread: Post Race!

    by boops boops
    Replies
    68,852
    Views
    17,959,996

    Re: Post Race!

    Lay off the Easter eggs then.
  4. Replies
    9
    Views
    1,518

    VS 2019 Re: drawborder and Style

    No, I wrote the quoted code myself, 9 years ago. The red colour was just an example of a custom border appropriate to that particular thread. It seems to me that the OP is asking for a standard...
  5. Replies
    9
    Views
    1,518

    VS 2019 Re: drawborder and Style

    I get the impression that Johanna isn't looking for coloured or otherwise fancy border effects, just the standard Fixed3D border. If that's the case, then you don't need the code quoted in post #1...
  6. Replies
    3
    Views
    792

    Re: Maybe or may be not

    The link explains the difference correctly but never mind, I should think that people understand the intention. What I find more irritating is FD's "miss-understanding". Does that mean a good...
  7. VS 2010 Re: How to make pictures transparent on Visual Basic?

    Never mind, at least the latest frameworks aren't bamboozling you:wave:. BB
  8. VS 2010 Re: How to make pictures transparent on Visual Basic?

    I suppose you are aware that both TransparencyKey and Bitmap.MakeTransparent respond only to an exact A, R, G and B combination. If one of these bytes deviates by 1 or more in 256, the rest will...
  9. VS 2010 Re: How to make pictures transparent on Visual Basic?

    I can't reproduce your problem. I tried .NET Framework 4.8 (VS2019) and 3.5 ClientFramework as well as .NET 6.0 (VS2022). A picture box with a partly transparent BackColor and with a partly...
  10. Re: Made a scrolling sine wave but it is very slow. Is there a better way?

    Since you ask for a better way, I suggest that you draw the sine wave just once.

    Here's a brief summary of how to do it: draw the sine wave on a bitmap, turn that into a TextureBrush, and use the...
  11. Replies
    7
    Views
    1,009

    VS 2010 Re: Anti-Aliasing Brush Function

    The edges of filled shapes (e.g. Ellipses and GraphicsPaths) are in fact antialiased by the appropriate SmoothingModes. See Remarks in MS documentation.

    Rectangles won't be aliased anyway, unless...
  12. Thread: Post Race!

    by boops boops
    Replies
    68,852
    Views
    17,959,996

    Re: Post Race!

    Maybe because they are imposters...?
  13. Replies
    17
    Views
    4,541

    Re: resize image dimensions in vb.net

    I haven't read all the code in this thread, but I can't help feeling that it's overcomplicated. After all, you can resize an image with one short line of code:


    Dim img As New Bitmap(sourceImage,...
  14. VS 2022 Re: Child form in front of the controls on parent form

    The the "Me" in form1.Show(Me) is a simple way to make it the Owner of form1.

    The owned form is locked in front of the owner (and its child controls) in the Z order, so no other form can come...
  15. VS 2022 Re: Child form in front of the controls on parent form

    Leave out the MDIParent and TopMost statements, and add 2 letters to the remaining line:


    frm1.Show(Me)


    BB
  16. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    Unfortunately, I didn't. My internet connection started playing up. I managed to get one message posted before it packed up altogether and missed your prior posting. I couldn't get it repaired until...
  17. VS 2022 Re: Show a transparent PictureBox over a ListBox Help!

    Here's a code example using a PictureBox. It produces result that looks to me something like what you wanted in post #1.

    In the designer, create a Form (Form1) with a ListBox (ListBox1 with your...
  18. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    The WPF listbox can't easily be activated from the Form. It can be done, and it wouldn't take thousands of lines of new code, but you do need a basic knowledge of XAML and WPF as well as the...
  19. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    If you read the documentation, you may notice that it says under the heading Remarks:

    In other words, the ListBox paint event is about as useless as ...
    I was going to cite male nipples (vide...
  20. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    Sorry, my mistake.

    The WinForms ListBox has been drawing itself in its own obstinate way for the last 20 years, constantly ignoring Paint events and OnPaint subs. And you don't want the...
  21. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    In System.Drawing, it's the parent control - the Form, Panel or other Container - that renders transparency for its child controls. So all you have to do is change the PictureBox's parent to the...
  22. VS 2022 Re: Printing a PictureBox in Zoom Mode. help!

    PictureBox.SizeMode and Graphics.DrawImage are different ways of displaying the image. The image itself isn't changed by either option. It's just a coincidence that an image drawn with...
  23. Replies
    1
    Views
    828

    Re: Smooth rounded boarderless form?

    A possible approach is to take advantage of the WPF Window, which supports partial transparency and hence anti-aliased edges. See my "Shaped Form" step-by-step example in the VB.Net code bank (link...
  24. Re: ZoomPictureBox: picture control with mouse-centred zooming

    Hi John, you are right. When I posted the last link nearly 3 years ago, I intended move it to post #1 where anyone could find it. But I discovered some errors and never got around to fixing them....
  25. VS 2019 Re: MouseOver Event doesn't work when object hidden

    Here's another way to do it that would require fewer changes.

    Instead of hiding the 'overlay' picturebox, set its background to near total transparency, e.g. alpha=1. As long as the alpha is more...
  26. Replies
    6
    Views
    1,253

    Re: Detect resize Top/Bottom vs Left/Right?

    An alternative that also works. It's a little bit more concise even discounting the Debug lines.


    Private formAspect As Double
    Private formWidth, formHeight As Integer

    Private Sub...
  27. Re: Why is my PictureBox image not found ?

    Your code doesn't even refer to Tags. Instead, you are relying on the PictureBox.Name property. If you've added all the picture boxes in the designer with default names, then maybe looping from 0 to...
  28. Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Did you know that you could omit 4 lines of that code? Namely the radius.AddLines. It's possible because CloseFigure automatically closes any gaps in the path by adding straight lines.

    BB
  29. Replies
    11
    Views
    2,790

    Re: Overlapping Calculation

    Clipping doesn't have to be complicated at all. In the Paint sub, all you have to do is put Graphics.SetClip(rectangle) before drawing the lines. Here's an example using the line and rectangle...
  30. Replies
    11
    Views
    2,790

    Re: Overlapping Calculation

    There's something still unclear. Do you want to draw only line segments that cross the rectangle completely? Or do you also want to draw line segments that end somewhere inside the clip rectangle?
    ...
  31. Re: ZoomPictureBox: picture control with mouse-centred zooming

    As far as I know all code posted in the CodeBank is unlicensed, so you are free use it however you like. if you include the code in a licensed project, it would be polite to add a comment referring...
  32. Re: ZoomPictureBox: picture control with mouse-centred zooming

    That question applies to any code library, not just ZPLib. And it's not something I know much about. Please address your question to another forum such as Visual Basic .Net or C#.

    BB
  33. Thread: Post Race!

    by boops boops
    Replies
    68,852
    Views
    17,959,996

    Re: Post Race!

    Darned jay walkers. They should stick to the bicycle lanes like they do in Holland.
    BB
  34. Replies
    3
    Views
    1,056

    Re: Region troubles

    Good idea. It results in a dilation of the original shape (opposite to erosion). That's not quite the same as widening by scaling, but there's nothing hacky about it if it's the effect you want. BB
  35. Replies
    3
    Views
    1,056

    Re: Region troubles

    The GraphicsPath.Widen(pen) method does indeed create an outline, not a "solid" shape. For example, if your graphics path shape is a circle, the Widen function will convert the path into a hollow...
  36. VS 2010 Re: TextRenderer.MeasureText Return same height for different width

    If you want a single line to fit a certain width, you can just scale the font size. For that, get the width of the string in (say) default font size, and scale it up or down to fit the desired width....
  37. Re: SmoothingMode AntiAlias and HighQuality not working in Form_Paint

    To resize an image or bitmap with Graphics.DrawImage, you need the Graphics.InterpolationMode settings. Probably you want
    Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic in your...
  38. Thread: Post Race!

    by boops boops
    Replies
    68,852
    Views
    17,959,996

    Re: Post Race!

    Ýou mean this isn't cyan when you want it to be?

    or, as NOPARSE would have it:

    You mean this isn't cyan when you want it to be?

    BB
  39. Replies
    13
    Views
    4,105

    Re: How to hide cursor?

    The Control.GetNextControl function provides a simpler way to iterate through all the child controls and their descendents. Here's an example based on DDay's code above:


    Private Sub...
  40. Replies
    14
    Views
    1,740

    Re: Oddity with mouseleave event....

    Not if there are child controls on the panel (see post #1). But maybe you found another way to solve the problem. BB
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width