forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with IMPORT_IMAGE@

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
rudnei



Joined: 29 Dec 2011
Posts: 38

PostPosted: Thu Dec 18, 2025 5:21 pm    Post subject: Help with IMPORT_IMAGE@ Reply with quote

I am using FNT95 8.10 and am unable to read a file into a graphics area, without using a resource control (which can't be used since the name of the file is unknown at compile time).

If I enclose the file name in curly brackets, I get an error: Curly bracket/integer form is not available in this context

Any ideas?

winapp
program testa_imagem
include <windows.ins>
integer :: i,ctrl,rslt,handle_img
rslt=winio@('%ww%ca[Teste]&')
rslt=winio@('%`gr[grey,rgb_colours]&', &
600,600,handle_img)
rslt=winio@('%lw',ctrl)
i=select_graphics_object@(handle_img)
i=import_image@('{600x600 pixel square.jpg}',0,0)
print *,'i=',i
end program testa_imagem
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 868
Location: Lanarkshire, Scotland.

PostPosted: Fri Dec 19, 2025 1:53 pm    Post subject: Reply with quote

I think handle_img has to be assigned a value by the programmer before winio@ calls with %gr
Back to top
View user's profile Send private message
rudnei



Joined: 29 Dec 2011
Posts: 38

PostPosted: Fri Dec 19, 2025 1:59 pm    Post subject: Reply with quote

Indeed! Many thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group