Changes

Drawing, Graphics, and Images VB6

1,456 bytes added, 13:30, 11 February 2008
The following lines were added (+) and removed (-):
=== PictureBox: Picture Box Control ====== Draw ===The graphical methods and properties which VB supports native:  pMainShip.Picture = LoadPicture(Trim(App.Path) & "\" & "sc001.bmp")METHODS* Circle - draws a circle or an ellipse * Cls - clears all graphics * Line - draws a straight line * PaintPicture - draws the contents of a graphics file * Point - returns the color of a point * Print - used for printing text * Pset - sets the color of a specific pixel=== Draw ===PROPERTIES* AutoRedraw - Determines if graphics are automatically redrawn if something moves in front of them * ClipControls - Determines how repainting of graphics is handled * DrawMode - Sets the appearance of a graphics method * DrawStyle - Sets the line style for output from graphics methods * DrawWidth - Sets the line width for output from graphics methods * FillColor - Sets the color used to fill circles, lines and boxes * FillStyle - Sets the pattern used to fill circle, lines and boxes * FontTransparent - Determines if the font is printed with a transparent background * Palette - Sets the image containing the palette to use for a control * PaletteMode - Determines which palette to use for the controls on a object * RightToLeft - Indicates the text display direction. * ScaleHeight - Sets the height of the client area * ScaleLeft - Sets the starting value of the left of the client area * ScaleTop - Sets the starting value of the top of the client area * ScaleWidth - Sets the width of the client area * ScaleMode - Sets the units of the scale*              Rectangle 100,100,200,200  Rectangle 100,100,200,200*              Ellipse 110,110,190,190  Ellipse 110,110,190,190*              RoundRect 220,300,350,400  RoundRect 220,300,350,400*              Line 250,400,500,400  Line 250,400,500,400=== PictureBox: Picture Box Control ===  pMainShip.Picture = LoadPicture(Trim(App.Path) & "\" & "sc001.bmp"):# Load into PictureBox then use BitBlt -or-## Load into PictureBox then use BitBlt -or-:# Load into memory DC then use BitBlt (less memory, time, and resource)## Load into memory DC then use BitBlt (less memory, time, and resource)# Oscillator## Use a Timer Control -or-## Throttle technique (looping continously):# Optional use Back Buffer (flickers more on small images)## Optional use Back Buffer (flickers more on small images):# Optional use StretchBlt to resize Sprite## Optional use StretchBlt to resize Sprite 
Bureaucrat, administrator
16,192
edits