ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Replacing SVG file loader

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rmklever Posted - Jan 04 2026 : 07:51:51
I am trying to replace the default SVG file loader with another SVG file loader. How can I change default SVG file loader to my own I am trying to use the following code:


const
  ioSVG = ioUSER + 782; // to get a unique FileType number contact support@xequte.com

  procedure RegisterSVG();
  procedure ReadSVG(Stream: TStream; Bitmap: TIEBitmap; var IOParams: TIOParams; var Progress: TProgressRec; Preview: boolean);
  function  TrySVG(Stream: TStream; TryingFormat:TIOFileType): boolean;

procedure RegisterSVG();
var ff: TIEFileFormatInfo;
begin
  ff:= TIEFileFormatInfo.Create;
  ff.FileType:= ioSVG;
  ff.FullName:= 'Scalable Image Format';
  ff.Extensions:= 'svg';
  ff.InternalFormat:= True;
  ff.ReadFunction:= ReadSVG;
  ff.WriteFunction:= nil;
  ff.TryFunction:= TrySVG;
  IEFileFormatADD(ff);
end;


The ReadSVG is my routine for loading a SVG file and convert it to a Imageen Bitmap.

It is working for other file formats I have added like QOI and others but not for SVG and I need this for my thumbs browser.

Any ideas?


Roy M Klever
Klever on Delphi - www.rmklever.com
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 05 2026 : 16:37:43
Hi Roy

Did you try removing the ioSVG format:

https://www.imageen.com/help/IEFileFormatRemove.html

And then adding SVG as a custom format, e.g.

iormkSVG = 10001;


Nigel
Xequte Software
www.imageen.com