o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Problem with Form Surface as Graphics -

Hi, I'm working on a graphics program and I seem to be having trouble with my graphics surface.
I used
Public Surface As Graphics = Me.CreateGraphics
I then draw on the Graphics Surface with the Surface.DrawLine command.

I am having a problem where the lines will only go in the top left area of the form. It seems like the graphics surface is smaller than the form. Any ideas on how I could possible make the surface bigger? I checked and did not find any height and width properties.

 

Problem with Form Surface as Graphics -
Hi, I'm working on a graphics program and I seem to be having trouble with my graphics surface. I used Public Surface As Graphics = Me.CreateGraphics I then draw on the Graphics Surface with the Surface.DrawLine command. I am having a problem where the lines will only go in the


Need DirectX surface help in VB -
Every tutorial I have found for surface flipping has the back surface created from a file. I am trying to create a back surface that I can draw onto and paste onto a front surface that is resizable. I do not want to create the back surface from a file. Can somebody post a code snippet


Can DDraw blit directly to a VB form -
I know dx works with surfaces but can a form be used as a surface? If not, can you create a surface on a form? I have a need to blit sprites graphics to a form for my level editor tool, I don't want to use bltbit because I don't want to have to create masks for all my sprites just


Dynamicly resizing a DX7:DD surface -
Hello Everyone, I am working on a 2D tile-based game engine that i started with Mirage Source Engine. I am currently optimizing the way the game handles its graphics. Currently, it loads the entire tile sheet, sprite sheet, and item sheet into memory at the game's start. I am


Saving Graphics -
Lets say I draw some graphics to the surface of a richtextbox. How do I save those graphics to a file?


[2005] How To Use DoubledBuffer -
I read a little about doublebuffer property in the help. "Buffered graphics can reduce or eliminate flicker that is caused by progressive redrawing of parts of a displayed surface. Buffered graphics require that the updated graphics data is first written to a buffer. The data i


Drawing a 3D Surface with MSChart -
Hello everyone, I want to make an application in VB wich draws a surface. The surface is given in a database like (x,y,z) rows. I want to make smth similar with 3D Surface from Excel. The MSChart Control doesn't have a surface type. If someone have any ideea how to make this s


DirectX surface resrictions -
Are there restrictions on the size of a surface in DX? I cant seem to make a surface for my backround map. Is there a way to load a larger file as a surface?? ------------------------------- PS... I cant load anything more then 640 pixel width...


Problem with D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR -
Hi again, I'm rendering my scene into a surface buffer, then I'm using this surface as a environment map. The problem is that the texture isn't wrapped (see pic), but it is wrapped as ecpected whenever I use a 'normal' texture instead. Any ideas how to achieve this? Oh and how


Saving an image buffer to disk -
I am working on a tile graphics RPG and my current project in it is the tile editor. It uses DirextX 7 to store the tiles and memory in surface buffers. How do I save the surface buffers to disk without locking the surface and reading one pixel at a time into an array then saving the a


Persisting Graphics -
I have a project I've been working on and it consists of working with graphics. The only problem I have is when the graphics show up on the form; if I minimize it or another window comes over top of my projects form, it erases the graphics. I know I might of not explained this w


direct draw question -
when you try to blt a surface that is partaily off the screen the entire surface is not shown is their a way that i can make it so that it will still show part of the surface??


DirectDraw7 Palette Swapping -
Here is what I am trying to do: I have a 8-bit bitmap image that I'm using to create surface. This surface is my tileset. I want to alter the palette on this surface before blting the tiles to a buffer. I have tried creating a palette object and using the SetPalette method of the su


GIF GRAPHICS! GIF GRAPHICS! GIF GRAPHICS! GIF GRAPHICS! GIF GRAPHICS! GIF GRAPHICS! -
Hey peeps, your fellow webmaster and programmer Xenonic Rob here. Just a thought - 1) Is there any way of saving the contents of a picture box to a BMP file? 2) How can I drag objects around a form at runtime? Thanks! [Edited by Xenonic_Rob on 09-27-2000 at 01:18 PM]


giving form the hocus focus -
I've got a MAIN form from which a SECOND form is invoked via a menu pick. On the SECOND form I've got an OK command button. When the OK button is pushed I want the MAIN form to come to the surface (sliding over the SECOND form). I used a form.show. Problem is that when the OK


Blt to a texture -
Can you blt to a surface created for use a texture with a surface created for use as a plain offscreen. I have a font set surface. I plan to have a blank texture surface used for dialog. I want to blt to that texture surface from the font set to create ingame dialog. I believe


Persisting Graphics{Resolved} -
I have a project I've been working on and it consists of working with graphics. The only problem I have is when the graphics show up on the form; if I minimize it or another window comes over top of my projects form, it erases the graphics. I know I might of not explained this we


[VB] Getting surfaces to display on/off the screen -
[VB] [directx] [directdraw] ok, i am trying to create this scrolling background (it scrolls down) the I created an array of surfaces, the surfaces are then moved down by a certain amount. It should work, but the problem I have is that when a surface hits the edge of the screen (no m


Classic Drawing problem -
Here's the jist of it: (classic drawing problem) I need to be able to draw some stuff on a graphics object. When the user selects a shape, the outline of the shape moves with the mouse cursor until they click on the drawing surface, where it becomes planted onto the surface. In the


Click a Sprite -
Ive asked this question in several newsgroups and forums and am not really finding an answer. I am simply trying to distinguish a transparent and irregular shaped blitted sprite from the drawing surface. My aim is to have a situation where if either the blitted sprite or the drawing su


DD and surface sizes -
I've been working on a tile engine, and I've also made a tool to test the capabilities of the engine. When loading a map, its the normal stuff of a character representing a type of tile and then the surface of tiles is created. I've found that on my test machine (compaq laptop PIII6


Loading a surface from a custom file format *RESOLVED* -
In the past I've always used API calls like SetPixelV to draw my graphics, but I've decided its time to upgrade to DirectX. What I'm doing right now is trying to convert one of my old programs that uses SetPixelV into a new one that draws the same stuff with DirectX7. I'm fairly new


Making Own Ingame dialog system -
Alright, I have written down on paper all I can to theorize on the idea. I wish to create a type of dialog system like the common rpg. I have created an alphabet bitmap with all the necessary characters. I will build a table which will relate x,y,width,height to a letter (thus t


Surface width problem (DirectDraw7) -
Why is it that I can't make a surface any wider than my screen resolution but I can make it as tall as I want? I'm still working on this $#@^ing map editor and it flickers like all hell but I'm sure I'll figure it out. Anyways, if you know what's goin on with the width problem, let me


Efficiency and Style2 combo questions -
I have 2 tables in my db: Table Surface SurfaceID autonumber also primary key Surface (text name of the surface) Table Art ArtID autonumber also primary key Surface number (integer - stores SurfaceID to save space) I do not wish the user to type anything in the surface cho


Direct Draw Surface -
I am making a game in c++ usin direct draw and i want to know how i can create and offscreen surface blt to it and then blt onto a back surface. How can i do this? Thnx


[2008] Adding scrollbars to a panel -
This may be dumb, but here goes: I want to create a view area inside of a form and draw some fun nifty graphics in it. Drawing the graphics is no problem. What I can't figure out is how to make the view area in which I'm drawing the graphics have an area that's larger than the for


DX7 surfaces again :) -
When I am trying to create a surface with width more that 640 pixels, my program crashes. The height, however, does not crash my app even at 1024 pixels. The screen resolution is 640x480 pixels. Is there a limitation on how wide a surface could be? What can I do if I need to create


DX Blitting between pixel formats -
I have a question. If I DirectDrawSurface7.Blt from an 8-bit surface to a 24-bit surface, will it work? I just read this thing that says it doesnt convert pixel format, it just copies the bits. And the reason I can't just try and figure it out is because I still can't create a 256 c


Toolwindow Graphics Problem -
Greetings and Salutations! The area of the form just under the Caption Bar is picking up graphics from other forms and does not look good. I am not sure if it is my computer or a known problem. I have set Auto Redraw to True but it does not stop. What else can I do to


Creating a surface from a bitmap with the right format [resolved] -
How can I decide the format of a D3D9 surface when loading a standard bitmap into it? I need to do this because I can't draw the surface on my backbuffer if they are not in the same format.


Loading one DirectX surface to another -
Ok, here is my dilemma. I have a loop entitled UpdateScreen that is called to comprise the backbuffer and flip it to the screen. I am using a surface titled ddsMainSurf to hold the background. What I am having problems with is that I have a ten frame animaton loaded into another surfac


Command Button problem (resolved-but weird) -
I've got a command button on my form, actually, the same thing is happening on two forms. Once this button is pressed, it does what it's supposed to and works fine. But, if a form is opened and displayed over this button, then that form is closed, the command button graphics show


Direct Draw Surfaces -
I am using the blt method on a direct draw surface object to blit a bitmap from an off-screen surface to the primary surface, and I keep getting an overflow error from vb. My rectangles are normal, and I know the surfaces were set up ok....can anyone help ? - Gof


Html Parser / IE implementation -
Hi there, I've got quite a tricky one here on which I'd need some help... What I want to do is to implement an HTML Parser (IE would do, every other control capable of displaying images and using hyperlinks would do perfectly well for me, too) into my C++ program. The problem is, I


Blitting a transparent backed DDraw surface *Fixed* -
Is it possible to blit a screen sized surface, but not have the background of the surface blit as well? For instance, i have three layers. Terrain Units Gui I want to blit them, in this order, on the backbuffer, then flip. (this avoids unnessicary re-drawing) However, i


Working with graphics -
I got not idea how to do this or where to start: I have a map, this map is on my form and i need to places graphics on it(use must select the graphics) i need to know the location of each graphics in order to used them in the future(delete, move it, etc). Do i need something special


HTML Parser / IE control -
Hi there, I've got quite a tricky one here on which I'd need some help... What I want to do is to implement an HTML Parser (IE would do, every other control capable of displaying images and using hyperlinks would do perfectly well for me, too) into my C++ program. The problem is, I


[2008] Graphics drawn to form, doesn't flash, but graphics drawn on picture boxs,does -
I've made a "windows explorer" by painting onto the form (ALL graphics), everything, you click etc.. it works great, only problem is high CPU usage, because I refresh the form every time move... On the painted (graphics) version, if I move my mouse rapidly on and off a but


BitBlt on a DD surface -
How can I bitblt on a directdraw surface, I want to do this for special effects, so all video cards can support it. Im not worryed about speed since, it will have minimal usage. Ok I have the memeoryDCs setup correctly, and can draw them on the form, but the DDsurface covers it... .