Recent

Author Topic: excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?  (Read 266 times)

greenzyzyzy

  • Full Member
  • ***
  • Posts: 234
excuse me,castle engine,how to convert TRGBImage to TDrawableImage,or backward?
and  TRGBImage,TCastleImage,TDrawableImage ,TSprite does not have loadfile functions

greenzyzyzy

  • Full Member
  • ***
  • Posts: 234
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|?
« Last Edit: August 14, 2020, 11:20:14 am by greenzyzyzy »

greenzyzyzy

  • Full Member
  • ***
  • Posts: 234
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