Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trouble filling in a closed vector shape
#15
(11-08-2025, 07:44 PM)bplus Wrote: A little mod of numbers:
Okay @bplus, I was playing with your code, and saw some strange behavior. 
Download the attached files and give them a run. 

2 questions:

Q1:
For FreeImage, I use a simple routine that checks to make sure the image is initialized before it does _FreeImage, so it doesn't blow up: 

Code: (Select All)
Sub FreeImage (ThisImage&)
    If ThisImage& < -1 Or ThisImage& > 0 Then _FreeImage ThisImage&
End Sub ' FreeImage
however, for some reason it in your program it fails with an illegal function call error.
I reverted back to the regular _FreeImage and did a check of the image handle value, and it doesn't change before or after the _FreeImage.
Shouldn't the value of the image handle go to 0 after it is freed? 

Q2:
I don't know why, but for some reason in my version, the colors are these subdued pastels, and not the vibrant colors you had. What happened? 

Anyway, I like your proggie, I'm just a little baffled by these 2 things...


Attached Files Thumbnail(s)
   

.bas   VH logo SwapColor test 10.bas (Size: 7.06 KB / Downloads: 11)
Reply


Messages In This Thread
RE: trouble filling in a closed vector shape - by madscijr - 11-10-2025, 06:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  simple 3d starfield & wireframe or vector graphics revisited madscijr 5 264 01-31-2026, 09:41 PM
Last Post: Pete
  trouble building ansiprint by a740g hsiangch_ong 2 579 01-09-2025, 12:57 AM
Last Post: hsiangch_ong
  Having trouble Windows command line SORT via SHELL GTC 19 4,367 08-26-2023, 04:19 AM
Last Post: GTC
  How do I paint a shape? PhilOfPerth 21 3,922 06-28-2023, 10:09 PM
Last Post: TempodiBasic
Photo Ellipse trouble james2464 14 2,998 08-25-2022, 10:52 PM
Last Post: james2464

Forum Jump:


Users browsing this thread: 1 Guest(s)