AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Include a bitmap in your uncompiled script!!!
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
zugurt
Guest





PostPosted: Mon May 14, 2007 9:46 am    Post subject: Re: Include a bitmap in your uncompiled script!!! Reply with quote

About the first post in the topic;

Cant we show the image without saving it on the disk.
Back to top
Helpy
Guest





PostPosted: Mon May 14, 2007 9:55 am    Post subject: Reply with quote

See Include bitmaps in your scripts!
Back to top
Guest






PostPosted: Mon May 14, 2007 7:36 pm    Post subject: Reply with quote

is it possible do this with a picture in .jpg? And its bigger? 1152x864
Back to top
Helpy
Guest





PostPosted: Tue May 15, 2007 9:31 am    Post subject: Reply with quote

These techniques are more designed for small pictures: encoding binary data to Ascii form (to be included in script) makes the data bigger (from 33 to 100% more) and there is a limitation on continuation section size.
So, it is possible, but probably inappropriate.
If you compile your script, perhaps you should check FileInstall.
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Tue May 15, 2007 10:17 am    Post subject: Reply with quote

Maybe THIS technique.

The concept can be extended easily to support arbitrary file/file size.
Titan's UUencode/decode can be good start. The same thing is used in e-mail clients around. Some compression can be achieved using PhiLho's & Laszlos compreesion algorythms. The best way though is to use cabinet creator to pack multiple files into single one, convert that single one into hex data and return it back later.
_________________
Back to top
View user's profile Send private message
Guest






PostPosted: Tue May 15, 2007 4:16 pm    Post subject: Reply with quote

can you give me an example? or the link to titan?
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Tue May 15, 2007 4:21 pm    Post subject: Reply with quote

Example is not trivial.

Keywords: BInaryRead/Write, UUEncode, loop, GUID, ScriptMerge
_________________
Back to top
View user's profile Send private message
Grumpy
Guest





PostPosted: Tue May 15, 2007 5:02 pm    Post subject: Reply with quote

majkinetor wrote:
Titan's UUencode/decode can be good start. The same thing is used in e-mail clients around.
No, if I recall correctly, UUEncode is an old, quite obsolete Unix encoding. E-mail uses Base64.
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Tue May 15, 2007 5:39 pm    Post subject: Reply with quote

Keywords .= " Base64"
_________________
Back to top
View user's profile Send private message
Guest






PostPosted: Tue May 15, 2007 7:20 pm    Post subject: Reply with quote

i am a very noob at this... please please pleace... make a example.. To get big pictures at the gui! I dont understand.. pleace help me!
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Tue May 15, 2007 8:44 pm    Post subject: Reply with quote

Why don't U try original approach. I bet it will work.
We ment LARGE files, and jpg at screen size isnt' LARGE.
_________________
Back to top
View user's profile Send private message
Grumpy
Guest





PostPosted: Wed May 16, 2007 9:16 am    Post subject: Reply with quote

Dear Anonymous Guest (are you zugurt the original poster? This is confusing), perhaps you should explain what are you trying to do.
Why loading an image from a file isn't wanted?
Back to top
BoBoĻ
Guest





PostPosted: Wed Sep 26, 2007 12:13 pm    Post subject: Reply with quote

There's a request at AfH, which I think could be solved using the techniques descriped at this thread.

Situation:
a) a consecutive number of images AKA a movie.
b) valid for most images is that only parts of its content will vary. The majority of pixels will remain unchanged.

What about to convert the 'master' image to keep it, and all following ones will just save the variable subset of that 'master'??
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Wed Sep 26, 2007 12:16 pm    Post subject: Reply with quote

Quote:
What about to convert the 'master' image to keep it, and all following ones will just save the variable subset of that 'master'??

To achive this, put all images in the GIF, optmise it, and do the code to display image from the gif by its index. Wink
_________________
Back to top
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Wed Sep 26, 2007 12:31 pm    Post subject: Reply with quote

I1 = 100k keep separate file
I2 = 100k "
I3 = 100k "
I4 = 100k "
I5 = 100k "
----- 500k

I1 = 100k keep master file
I2 = 10k keep variable subset of master file
I3 = 15k "
I4 = 10k "
I5 = 60k "
----- 195k
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group