Lazarus

Programming => Graphics and Multimedia => Games => Topic started by: greenzyzyzy on August 14, 2020, 08:42:16 am

Title: excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?
Post by: greenzyzyzy on August 14, 2020, 08:42:16 am
excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?
and  TRGBImage,TCastleImage,TDrawableImage ,TSprite does not have loadfile functions
Title: Re: excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?
Post by: greenzyzyzy on August 14, 2020, 09:01:28 am
excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?
and  TRGBImage,TCastleImage,TDrawableImage ,TSprite does not have loadfile functions

TSprite TDrawableImage have Create( ) function with URL param to load file.
TRGBImage,TCastleImage  how to do , i do not know.

at last what is different between procedure Draw(const X, Y: Single); overload;
and procedure Draw(const ScreenRect, ImageRect: TFloatRectangle); overload;
in TDrawableImage|?
Title: Re: excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?
Post by: greenzyzyzy on August 14, 2020, 12:48:54 pm
excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?
and  TRGBImage,TCastleImage,TDrawableImage ,TSprite does not have loadfile functions

TSprite TDrawableImage have Create( ) function with URL param to load file.
TRGBImage,TCastleImage  how to do , i do not know.

at last what is different between procedure Draw(const X, Y: Single); overload;
and procedure Draw(const ScreenRect, ImageRect: TFloatRectangle); overload;
in TDrawableImage|?

ok, maybe the property URL is the filename.
TinyPortal © 2005-2018