Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-12-2004, 04:52 AM   PM User | #1
malform
New Coder

 
Join Date: Mar 2003
Location: Dallas,TX
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
malform is an unknown quantity at this point
Visual Basic altering BMP files?

I have windows ME and I am writing a program using Visual Basic 6.(not .NET, which is for XP)

I have a program that creates logos (startup screens).They are made from 320x400 BMP files saved as .SYS files.To animate them,I need to set bytes H32 and H33 (decimal 50 and 51)to specific numbers,say HEC and H00(decimal 240 and 0).I assume the plan is to open this file as binary and Put my values there.The file is "LogoAnim.SYS"a BMP file of 127K in length.Can someone give me the specific code for this?

You can lead a horse to water,but it would be easier to ride him there.....
malform is offline   Reply With Quote
Old 03-13-2004, 08:31 PM   PM User | #2
malform
New Coder

 
Join Date: Mar 2003
Location: Dallas,TX
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
malform is an unknown quantity at this point
Hello hello is there anybody out there?

Why do I answer my own questions?

Global xx As Integer

SavePicture LogoAnimator.Image1.Picture, FileName
Open FileName For Binary As #1
xx = 256 - Val(LogoAnimator.NumberAnimated.Text)
Put #1, 52, xx
xx = 0
If LogoAnimator.BackandForth.Value = 1 Then
xx = 1
End If
Put #1, 53, xx
Close #1

Now- how is the best way to insert a string?
malform is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:07 AM.


Advertisement
Log in to turn off these ads.