Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-03

FPImage unit ImageHandlersManager design problem

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

Having just looked over the class factory for images in FPC, I found that ImageHandlersManager is missing a critical method to obtain a reader or write by the extension used.

Presently the getReader uses the TypeName and not the Extenstion. I find this quite annoying. Can someone please extend the manager to handle a GetReaderByExt(sExt) ? Thanks!

I would be willing to do it myself but don't know if it would be accepted.

Reply by email

Unknown author
to Andrew Brunner
Andrew Brunner wrote 9 lines
Having just looked over the class factory for images in FPC, I found that ImageHandlersManager is missing a critical method to obtain a reader or write by the extension used. Presently the getReader uses the TypeName and not the Extenstion. I find this quite annoying. Can someone please extend the manager to handle a GetReaderByExt(sExt) ? Thanks! I would be willing to do it myself but don't know if it would be accepted.

It would be accepted.

Michael.

Reply by email