| View previous topic :: View next topic |
| Author |
Message |
mustapha.wang Guest
|
Posted: Mon Oct 09, 2006 8:11 am Post subject: how to get GraphicClass from file extension? |
|
|
In Graphics.pas,delphi provided function as below:
function GraphicFilter(GraphicClass: TGraphicClass): string;
function GraphicExtension(GraphicClass: TGraphicClass): string;
function GraphicFileMask(GraphicClass: TGraphicClass): string;
But,How can I get a GraphicClass from a extension?
Always,I need to save graphic into database,extension and stream.
When I read it from database,I need a function to get GraphicClass.
I suggest delphi move class "TFileFormatsList" and variable "FileFormats" up
to interface block. |
|
| Back to top |
|
 |
C-H Guest
|
Posted: Mon Oct 09, 2006 6:28 pm Post subject: Re: how to get GraphicClass from file extension? |
|
|
"mustapha.wang" <mustapha.wang (AT) 163 (DOT) com> wrote:
| Quote: | But,How can I get a GraphicClass from a extension?
|
Peter Below came up with a solution in this newsgroup not long ago.
Search for thread with >GetIMGType<.
/C-H |
|
| Back to top |
|
 |
mustapha.wang Guest
|
|
| Back to top |
|
 |
Mike Lischke Guest
|
Posted: Tue Oct 10, 2006 8:11 am Post subject: Re: how to get GraphicClass from file extension? |
|
|
mustapha.wang wrote:
| Quote: | For a plugin system,I don`t kownow how many other Graphics will be
registered beforehand.
|
I think my GraphicEx library is something you would appreciate. It not
only supports many graphics formats (sig, png, tiff, gif etc.) but also
has the ability to determine the image type from a stream. No file
extension is needed! Use the link in the sig to get to the library.
Mike
--
www.soft-gems.net |
|
| Back to top |
|
 |
mustapha.wang Guest
|
Posted: Thu Oct 12, 2006 6:33 am Post subject: Re: how to get GraphicClass from file extension? |
|
|
Oh,Thanks.
I see you code.Really,you also meet the same problem.You writed your own
"TFileFormatList".Then,another user`s new graphic must use your
"TFileFormatList" to register.They accept this as a standard?
Why not ask "Team B" to open it for us? |
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Fri Oct 13, 2006 3:06 am Post subject: Re: how to get GraphicClass from file extension? |
|
|
mustapha.wang wrote:
| Quote: | Why not ask "Team B" to open it for us?
|
Open what? You've lost me ...
--
-Mike (TeamB) |
|
| Back to top |
|
 |
mustapha.wang Guest
|
Posted: Wed Oct 18, 2006 8:11 am Post subject: Re: how to get GraphicClass from file extension? |
|
|
Open class "TFileFormatsList" and variable "FileFormats" up
to interface block. |
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Wed Oct 18, 2006 6:29 pm Post subject: Re: how to get GraphicClass from file extension? |
|
|
mustapha.wang wrote:
| Quote: | Open class "TFileFormatsList" and variable "FileFormats" up
to interface block.
|
Oh, I see. I think you meant to say that *Borland* should include
those in the interface. This would be a good suggestion for Quality
Central:
http://qc.borland.com
TeamB does not work for Borland:
http://www.teamb.com
--
-Mike (TeamB) |
|
| Back to top |
|
 |
David Berneda Guest
|
Posted: Sun Oct 22, 2006 5:43 am Post subject: Re: how to get GraphicClass from file extension? |
|
|
Sometime ago (april 2005) I submitted one QC report very similar, and it's "open"
http://qc.borland.com/wc/qcmain.aspx?d=11837
regards
david
www.teechart.com
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> wrote in message news:xn0esm2t6416xqr001 (AT) newsgroups (DOT) borland.com...
| Quote: | mustapha.wang wrote:
Open class "TFileFormatsList" and variable "FileFormats" up to interface block.
Oh, I see. I think you meant to say that *Borland* should include
those in the interface. This would be a good suggestion for Quality Central:
http://qc.borland.com |
|
|
| Back to top |
|
 |
mustapha.wang Guest
|
Posted: Wed Nov 15, 2006 6:45 am Post subject: Re: how to get GraphicClass from file extension? |
|
|
Oh,sorry,I opined that "Team B" is a department of Borland maintaining
Delphi.
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> ?¤J®ø®§
news:xn0esm2t6416xqr001 (AT) newsgroups (DOT) borland.com...
| Quote: | mustapha.wang wrote:
Open class "TFileFormatsList" and variable "FileFormats" up
to interface block.
Oh, I see. I think you meant to say that *Borland* should include
those in the interface. This would be a good suggestion for Quality
Central:
http://qc.borland.com
TeamB does not work for Borland:
http://www.teamb.com
--
-Mike (TeamB) |
|
|
| Back to top |
|
 |
mustapha.wang Guest
|
Posted: Wed Nov 15, 2006 6:48 am Post subject: Re: how to get GraphicClass from file extension? |
|
|
It seems Borland not deal with that.
"David Berneda" <david (AT) steema (DOT) com> ?¤J®ø®§
news:453abe31 (AT) newsgroups (DOT) borland.com...
| Quote: | Sometime ago (april 2005) I submitted one QC report very similar, and it's
"open"
http://qc.borland.com/wc/qcmain.aspx?d=11837
regards
david
www.teechart.com
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> wrote in message
news:xn0esm2t6416xqr001 (AT) newsgroups (DOT) borland.com...
mustapha.wang wrote:
Open class "TFileFormatsList" and variable "FileFormats" up to interface
block.
Oh, I see. I think you meant to say that *Borland* should include
those in the interface. This would be a good suggestion for Quality
Central:
http://qc.borland.com
|
|
|
| Back to top |
|
 |
|