FLTK logo

[fltk.general] Re: Does Fl_Image always release the lock on the file it is reading

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Does Fl_Image always release the lock on the file it is reading "lifeatt... Jul 27, 2022  
  FLTK 1.3 or 1.4?
Windows, Mac, or Linux?
Using the FLTK PNG code, or the system PNG library?

On Tuesday, July 26, 2022 at 10:59:28 AM UTC-4 pvr...@btinternet.com wrote:
I have noticed that I am not allowed to update a file after I've opened it with Fl_PNG_Image.

I use:

Fl_Image* image;
:
:
Fl_Image* raw_image = new Fl_PNG_Image(filename);
// calculate new image size after scaling to fit
image = raw_image->copy(new_w, new_h);
delete raw_image;


I have only a feeing this is happening. I just want to rule out that Fl_Image (or its heirs) is locking the file. Depending on the file extension, I use Fl_PNG_Image or JPG or BMF

Thanks Phil.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/ebc2a511-c133-49e8-92fc-f53e13956f42n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.