Dynamically changing a bitmap image on pc
#2
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
On our desktop machines we have a standard build but with various changes per department at login, and sms etc..
What I am wanting to do is dynamically change the bitmap (desktop background) to include a build version number and department name at the bottom... can this be done???
Regards
David
What I am wanting to do is dynamically change the bitmap (desktop background) to include a build version number and department name at the bottom... can this be done???
Regards
David
#3
Scooby Regular
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes
on
0 Posts
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
Hi David,
Take a look at: http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml
With a bit of tweaking, should give you what you need.
Cheers
Ian
Take a look at: http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml
With a bit of tweaking, should give you what you need.
Cheers
Ian
#4
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
Cheers..
That is ^%$£ing brilliant...that's one of those utilitys that will be kept in my collection...
Just out of interest does anybody know the theory behind this Ie How to do it?
David
That is ^%$£ing brilliant...that's one of those utilitys that will be kept in my collection...
Just out of interest does anybody know the theory behind this Ie How to do it?
David
#6
Scooby Regular
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes
on
0 Posts
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
In VB...
Capture the form...
Public Function CaptureWindow(ByVal hWndSrc As Long, ByVal Client As Boolean, ByVal LeftSrc As Long, ByVal TopSrc As Long, ByVal WidthSrc As Long, ByVal HeightSrc As Long) As Picture
Save it...
SavePicture Picture1.Picture, "c:\windows\bitmap.bmp"
Capture the form...
Public Function CaptureWindow(ByVal hWndSrc As Long, ByVal Client As Boolean, ByVal LeftSrc As Long, ByVal TopSrc As Long, ByVal WidthSrc As Long, ByVal HeightSrc As Long) As Picture
Save it...
SavePicture Picture1.Picture, "c:\windows\bitmap.bmp"
Trending Topics
#9
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
David,
Do you mean programatically?
Short description...
There is something called a device context - a representation of a drawing surface. Create a bitmap with the Win32API call, CreateCompatibleBitmap. Create a memory DC and select the bitmap into it. Draw text retrieved from a SYSTEM_INFO structure into the DC. Save to file.
Do you mean programatically?
Short description...
There is something called a device context - a representation of a drawing surface. Create a bitmap with the Win32API call, CreateCompatibleBitmap. Create a memory DC and select the bitmap into it. Draw text retrieved from a SYSTEM_INFO structure into the DC. Save to file.
#11
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
MrDeference, thats exactly what I mean..
I like the app and its almost perfect, but im one of these people thats never happy.. and like to modify things... like i want it to choose which background to use ie 800x600 , 1024x768 etc.. without having to stretch it..
And would rather write the app internally than use a third party tool... (even though I have just rolled that out..)
David
I like the app and its almost perfect, but im one of these people thats never happy.. and like to modify things... like i want it to choose which background to use ie 800x600 , 1024x768 etc.. without having to stretch it..
And would rather write the app internally than use a third party tool... (even though I have just rolled that out..)
David
#12
![Post](https://www.scoobynet.com/images/icons/icon1.gif)
Good luck.
It should be quite simple to do, particularly if you use MFC, as all the required APIs are wrapped up in easy to use classes.
If you get stuck give us a shout...
It should be quite simple to do, particularly if you use MFC, as all the required APIs are wrapped up in easy to use classes.
If you get stuck give us a shout...
Thread
Thread Starter
Forum
Replies
Last Post
hardcoreimpreza
Computer & Technology Related
21
11 October 2015 03:40 PM