Home Index classes Index static functions Index enumerations Index structure types

{Png|_format|_load_save}


CLASS {Png|_format|_load_save} , UNTESTED :



IMPORT : {Bitmap} , {AL4_drawing} , {Stream} , {File_stream} .


-------------------------------------------------------------------- 'load'

    

FUNCTION From_file (
     
STR Path|_of_file ,
     
{reduce_size} Option|_reduce ) ==> {Bitmap} , NEW



FUNCTION From_stream (
     
{Stream} S|ource_stream ,
     
{Bitmap}.{reduce_size} Option|_reduce ) ==> {Bitmap} , NEW



FUNCTION Can_load ==> BOOL



FUNCTION Can_save ==> BOOL



-------------------------------------------------------------------- 'save'

  

FUNCTION To_file|_save (
     
{Bitmap} B|itmap_to_save ,
     
STR Path|_of_file ,
     
INT Quality|_of_compression_10_to_100|DUMMY_now_not_used_may_be_later ) ==> BOOL



FUNCTION To_stream (
     
{Bitmap} B|itmap_to_save ,
     
{Stream} S|tream_destination ,
     
INT Quality|_of_compression_10_to_100 ) ==> BOOL


END