Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Drawing On Background Image


Hi folks,

Is there a way to draw on a forms background image so you can remove the drawing leaving the background image intact without doing a refresh? I want to draw some moving lines across the background image that reveal the background again when I move them to their next position. refresh causes too much flicker.

Can i do layers or something and draw/ remove only on a top layer or something?

Hope someone can help
regards




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Random Refresh Of Drawing Surface Causes Background Color To Show
I'm using directdraw7 to display my game. I'm having an issue when the game is windowed.

My render chain works like this: back buffer->front buffer (associated with picturebox)

I've just noticed that occasionally - say, once every ten seconds, the picturebox that I'm blitting to will 'refresh' and re-paint itself... displaying the background color that is normally behind the game graphics.

Is there a way to stop this from happening?

Alternatively, I suppose I could use the BltToDC function, and draw directly from the back buffer to the picturebox... is this slower than the normal process?

Make ListBox Background An Image Or Make Background Transparent?
Is there any way I can use the standard listbox and use some sort of bitblt or gdi stuff (i know nothing about those graphical functions) to put an image in the background of the listbox or if that's not possible if i could even make the background transparent and have the picture set as the form's picture?

Thanks in advance!

Making Image Background As Desktop Background Or Making It Blank
Hello there
I got typical situation here.I need to make an image background blank or making the Backgroung as desktop background. If u can give me some tips that would be appreciable.
thanks
ban

Drawing Image Help! [DD7] (DX7)
Hi, i've been having some trouble outputing my image ontot the screen, the code used to work fine, i don't know what happened, but It won't work now.

The project is zipped.

Drawing Over A Bmp As An Image
I have been making a reaction test program in visual basic 6 and have nearly completed it. I am recording the postion of the mouse with the form_MouseMove command and then taking a screen grab of the end image. What I can not work out how to do is to have the circles draw over the image they have to click on. (so i can get an idea of where on the image they click). The image is just placed on the form. Any ideas please post them here thanks alot!


Dan

Drawing An Image On A Circle
I want to be able to place an image on a drawn circle just like in a cd labeler program? Any help would be appreciated.

Thanks,

Keith

Drawing Lines Behind Image
I have a image on my forum and during runtime I use the forum.line command to draw a line, but it draws it over the image and I would like it behind the image. Is there a way to do this?

Image Or Picture Drawing
can any body tell me how to draw lines,circles and custom lines in a picture box

can any body help regard on this

please


najath

Drawing A Selection On Image
Can ne buddy tell me how to draw a closed selection on a image in a picture box.


and then how to get its coordinates of the selection

Drawing A Line In A Image Control ?
Hi,

I'm writting a ActiveX control to simulate rain on an image. So far I have done it by creating 5 transparent GIF's and let them loop inside an image control. The control is set to windowless. This methode works fine but is not really an example of good coding and the initialisation takes to long due to the amount of pictures included.

The application that uses this OCX registers it dynamically.

I want to accomplish all this by draw lines inside a image control. I have a code snipped to simulate rain on a form but I want it to appear in an image contol.

However I have never used a draw method in Visual Basic and I can get a line being drawn inside an image control or picturebox.

Any suggestion about making this rain generator or most welcome.

Kind regards,

ShAdOwHuNtEr

Drawing An Image To A Bitmap In Memory
Which api would do that?
So far i have only found ones that load an image, but after I load it i need to draw it.

Drawing Grid On Picture Image
Hi

I loaded some photo image on picturebox(or image control).
I want to draw grid lines on it.
All Photo image doen't be displayed.
It is cropped and some part is displayed.
And it can be moved by panning window.
But grid line should not be moved.
For this, I think I should use 2 control-one for photo image, the other for grid.
I made image control for photo image and made another control for grid on it.
But event goes always to control for grid so I can't make image control receive key down event.
How can I make this?

Drawing/Modifying ToolBar Button Image
Hi All,

can some one tell me the strategy to draw on to a tool bar button image? for example, I have a button for Paint Bucket in the paintbrush like program. When the user chooses a color for paint bucket, button's background changes to selected color. I have the paint Bucket icon inthe Image List. Obviously i can not put one icon for each color in the image list and select it into the button. Any better way?

With regards
Sesri

Hi all, figured out the way.

1. load the bitmap.
2. select into a new compatibledc.
3. now whatever you want you can draw on to it say lines, boxes, circles etc. here, i am drawing a small 6x6 red square.
4. set the toolbar imagelist property to nothing (otherwise, vb doesn't allow to modify the imagelist control.)
5. then remove the old image from the imagelist control if you want, and add the modified picture to imagelist control
6. set the toolbar imagelist property to imagelist control.
7. set the button's image to the newly added picture.

but is it possible to draw directly on the image in a imagelist or the toolbar button thru' api's ??? any light on that ?

Stop A Moving Image Drawing Over Other Lines...
I have the following code which moves a little image control across the form, but what happens when it moves across slowly is it sort of half draws over lines that I have on the form....how can i get it so that it doesnt draw over the other lines and leaves them intact....so that it doesnt leave this kind of trail.....


VB Code:
Private Sub Timer1_Timer()If Image2.Left < 9240 Then Image2.Left = Image2.Left + 1'only move the picture one space over if it isnt alreadt at the desired locationEnd IfEnd Sub

Drawing Lines Using Image Editor Toolbar
Hi,

I need to draw a line on a windows form in my project using Visual
Basic .Net 2003. My preference would be to use a toolbar rather than
code, if possible. I was able draw lines on forms using Visual Basic
6.0 with no problem but now for some reason the line tools are grayed
out on the Image Editor toolbar in .Net 2003. Does anyone know if it
is possible to do this using a tool bar in Visual Studio .Net 2003 or
will I need to code it instead?
I have been seaching Technet, MSDN, and the Knowledge Base for 2
days and cannot find an answer.

Thanks,
Rob

Background Image
Hi,

How do I control the position of a background image on a Visual Basic form? What I would like to do is improve the look of my form by having a nice image on the left hand side of the form. The same sort of thing that you see during the installation of most softwares.

Thanks

How Can I Have Image Background?!!
Hi Friends,
How can I put image background in my form?

Many thanks for your help,
Elahe

Background Image
How can i get a backrgound image that is max size... stretched!

Background Image
I have a small standalone VB6 program that I have just developed. It now needs to be made to look prettier. I would like to keep the file size down but add a bit of style to the background. Any ideas whether putting a single large jpg on the forms is better practice than individual small ones around the edges and middle of the forms?

The forms are all fixed size but I wonder if doing this could give different effects on different setups?

Sample of PCTools Registry Mechanic interface - I think it is a clean and functional look, I'd like to achieve something like this. How can I style the buttons like this?

Thanks in advance

Image As A Background
How can I set an image to be the background of the form? (I.E. sent to back, so that all controls are still viewable)

I want the image to be resived and strech as the form moves, so if the form as 400 by 400 the image would be to, if the form changes to 500 by 300 then i want the image to change to that too. Any one know how?

Background Image
Hello, I've added an Image in a form and I've made it big enough in order to fit in the form and seem like background. When I run my program everything seems Ok in my computer but when I tried to run it in another computer the image seemed to have become smaller and its position had changed! What's going on?

Image Background!
I am using 5 images in a PictureBox (using If....Else condition). Now when I have a look at the images in any image editor (like MS Paint etc.), I find that the background of all the images are white but when the same images are loaded in the PictureBox one by one, I find that some of the images don't show that white background but some of the images show the white background (all the images are 32X32).

Changing the background color of those images which show the white background in the PictureBox to the Windows system color scheme will not help me because I can't expect all users to use the same Windows color scheme in their machine that I am using. So how do I ensure that the images that show the white background in the PictureBox don't show the white background like how the images that don't show the white background in the PictureBox behave?

Note that I have set the BackColor property of the PictureBox as the Application Workspace.

Thanks,

Arpan

Set Background Image
How would you set a background image for Form1?

Thanks.

Background Image
does anyone know if the mshflexgrid could have a background graphic? I've found how to load a picture into a cell, but I'd like to put something behind the data.

if that's not possible, then is there anyway to make the flexgrid transparent and place a graphic behind it? maybe someone has a function that will make a control transparent?

thnx

Image Box Background
I need to know how to make the background of a picture or image box transparent. Cause in my game when things move then extra around the pic does not blend in.

Background Image With Buttons?
I've seen several programs that use two background images, one with buttons up and one with buttons pressed. I want to use this method rather than have 2 images for each button but I have no idea how to do this.

I tried searching but don't really even know what to search for. Can anybody help me out?

Blinking Image In The Background
I am using an image control to put a picture in background of form.I have changed the "streatch" property of image control to "True" for resize the picture size and wrote the code for resize the image control size as form size when user resize the form. but the form is blinking when he resize the form.

please I need a solution to solve this problum.
thanks

Background Image For Treeview
is there a way to make a background image appear in a treeview? or even a colour other than white?

Directx7, Image As Background
hey, I was learning with loading a 3d car with a small peice of land, which I succeeded with. as I was setting the background color (blue, to look like the sky) I typed this:
.SceneFrame. and as I started typing .SetSceneBackground I saw SetSceneBackground Image. Can you use this to load an image (such as a sky image) to put in a background?


thanks

Background Image For The Sheet.
Hi,
is it possible set a background image for a Sheet? In my sheet I have cell protected and not protected and I have limited (Hidden rows and columns) the size of my Sheet.
Any idea? Thanks.

Giovanni

Background Image Control
I am developing an application using Microsoft Visual Basic 6.0. I need an image control for displaying a background picture of a form, on which other smaller images and shapes (such as circles or lines) are displayed and moved by the user. The problem with the basic VB image control is that its rendering capabilities are not sufficient, and moving other images upon it during runtime results in a very disturbing "flickering" effect.

I thought of using the GTImage ActiveX control, but when I tried to use it I couldn't move it to the background and place other images or shapes on top of it.

Is there any way of doing that using this control ? Are there any other image controls I can use, or any other ideas on how to solve the problem ?

Form Background Image
I'm just wondering if it's possible to apply a background image to a form?

Transparent Background Of An Image
how do I make it so that ALL black in an image becomes transparent when in VB?

Jacob Sheehy
http://www.sheehy.ca

Transparent Background On Image
When i load an image it is a rectangle. But i want the guy in there ( my hero to be visible but whole white background to be transparent so it doesnt looks so ugly...
how can i do this

Set Background Image For Datareport
I have been working on an application that has a few reports that the user can select from and print (Reports Designed in VB's datareport designer). What I am trying to do with the reports is set a background image for the entire report. Is there any way I can do this with the report designer?

Thanks,
CodeHunter

How To Remove Image Background?
Hello.
Lets say i have two pictures, or images, one is behind the other.
They both have white background but i can't see the picture behind because of the background.
For example, when i select an image in 'Paint', i can choose if it will be opaque or not and I choose the 'Not Opaque' and it works.
How do i remove the image background so i can see the picture behind?

Look at this:
http://farspic.com/files/9atm9j87dzyy4cwkf0ei.jpg

10k u

Image As Listbox Background
i'm not sure if this is possable and dont think it is but can you have a listbox's background a picture?

Setting Background Image
is it possible to set my desktop background automatically, given only a image weblink..

e.g,

www.site.com/image.png

first the program would have to download that right? and then use API calls to set the image as desktop background?

has anyone ever done this?

Image Background Not Transparent ?!?!
I've got a small jpeg, which is basically a word saying "Approved", which is at an angle of 30 degrees.
Originally the backcolour was white, so I loaded it into Photoshop and made the background transparent.
When I load the picture into either an image or picturebox control in VB6, I still have the word with a white background as opposed to a transparent background.

How do I make VB realise that the background is transparent, as I want to overlay it on some labels ?

Or can this not be done ?

Any help much appreciated ...

Background Image To SSTabs
ok. i have created some SSTabs in VB6 and was wandering how i can get a background image instead of the grey.

http://img354.imageshack.us/img354/987/example0ft.jpg

is what it looks like, i want to be able to replace the grey with an image. how can i go about this? anyone?

thanks in advance

Viper-Inc

Background Image On Forms - Possible?
I can't find any reference to it, but I would think it would be possible. I would like to tile an image.

Cat

Image Transparent Background Help Please
Hey everyone can someone help me. I need someone to try and make the background of the image below to be transparent thanks

How To Set Background Image Of A Form?
hi all,

the subject line tells what my problem is. it may be very easy for all of u vb experts but i am not finding any property of form to set background image. i want to set it for the whole form whether it is maximized or normal. anyone of u who knows this please help me solve the problem.
Remember i dont want to set bakground color! i want background image.

thanx in advance,
ilikevb

Background Image For A Form?
Is there any way that I can use an image as the background of a form?

If so, how can I do it and can I tile it or stretch it?

Any help will be appreciated.

Form Background Image
Hey ive been trying to setup an image that stays on the form through out the whole project. I cant seem to get the picture to stay... any suggestions?


thanks

Form Background Image?
Ok, I have a jpg that is really small, so I want to tile it on the form like is done on webpages and windows wallpaper. I've heard I need to do this with bitblt. What is the easiest way to tile a background image onto a form. Any help or examples are extremely appreciated.

Background Image For Treeview?
is there a way to set the background of a treeview to an image?

API if possible, cus it will be tiled

ta

How To Put An Image As Background Of Treeview
I'm writing an pplication that uses a treeview control. I want to changhe the default white backgroud to an image. Any help will be very appreciated.

Thank you

RichText Background Image?
Ok, last question (I think ).

Is there any way to set the background of a Richtext control to an image rather than a color?

Copyright © 2005-08 www.BigResource.com, All rights reserved