Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_WIDTH(_LOADIMAGE()) Ok?
#3
Running this program on Manjaro MATE:

Code: (Select All)
dim lh as long, i as long
dim apic$
apic$ = environ$("HOME") + "/Pictures/linux-distros-wikipedia.png"
for i = 1 to 10
    print i
    lh = _width(_loadimage(apic$, 32))
next
print "Press any key to get away..."
do : ke$ = inkey$ : loop until ke$ = ""
do : _limit 20 : ke$ = inkey$ : loop while ke$ = ""
system

For this picture converted by GIMP to PNG file, which is 4.5MB in size:

https://en.wikipedia.org/wiki/Linux_dist...0_2021.svg

Observe the screenshot:

[Image: memory-hog-width-loadimage.png]
Reply


Messages In This Thread
_WIDTH(_LOADIMAGE()) Ok? - by TerryRitchie - 01-13-2023, 01:45 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by mnrvovrfc - 01-13-2023, 02:07 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by TerryRitchie - 01-13-2023, 03:43 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by mnrvovrfc - 01-13-2023, 02:24 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by RokCoder - 01-13-2023, 04:10 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by bplus - 01-13-2023, 04:18 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by bplus - 01-13-2023, 04:59 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by SMcNeill - 01-13-2023, 05:12 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by TerryRitchie - 01-13-2023, 08:55 PM
RE: _WIDTH(_LOADIMAGE()) Ok? - by TempodiBasic - 01-21-2023, 12:02 AM



Users browsing this thread: 2 Guest(s)