Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
Generalcoloured lines in a multilined textbox Pin
maheshfour6-Mar-05 18:30
maheshfour6-Mar-05 18:30 
GeneralRe: coloured lines in a multilined textbox Pin
Anonymous6-Mar-05 19:33
Anonymous6-Mar-05 19:33 
GeneralRe: coloured lines in a multilined textbox Pin
Robert Rohde6-Mar-05 20:12
Robert Rohde6-Mar-05 20:12 
GeneralRe: coloured lines in a multilined textbox Pin
maheshfour6-Mar-05 20:38
maheshfour6-Mar-05 20:38 
GeneralRe: coloured lines in a multilined textbox Pin
Robert Rohde6-Mar-05 20:59
Robert Rohde6-Mar-05 20:59 
Generalblit question Pin
theDexter6-Mar-05 17:10
theDexter6-Mar-05 17:10 
GeneralRe: blit question Pin
Robert Rohde6-Mar-05 21:24
Robert Rohde6-Mar-05 21:24 
GeneralRe: blit question Pin
theDexter7-Mar-05 2:40
theDexter7-Mar-05 2:40 
Maybe an example would help here.

...
Graphics g = e.Graphics;
string[] files = Directory.GetFiles("path", "*.gif");
foreach(string file in files)
{
g.DrawImage(Image.FromFile(file), x, y, width, height);
(the x, y, width, and height variables are adjusted for each
image, so they don't draw on top of each other)
}
...

This is placed in the OnPaint method of the form. If the graphics are placed on the harddrive of the machine running it, the art appears rather quickly. But if the art is stored on a server, or on a CD, each image is shown one at a time (quite a bit slower than storing the pics on the local machine), until all images are shown.

I need a way to draw the images onto an object off screen (perhaps a Bitmap object?) and then when all of the images have finished drawing, display the finished object as a single piece of art.

I have seen examples of this using DirectDraw, but I want to do this without DirectX.

Thanks for your help.
GeneralRe: blit question Pin
Robert Rohde7-Mar-05 5:04
Robert Rohde7-Mar-05 5:04 
GeneralRe: blit question Pin
theDexter7-Mar-05 8:28
theDexter7-Mar-05 8:28 
GeneralRe: blit question Pin
theDexter7-Mar-05 9:32
theDexter7-Mar-05 9:32 
GeneralENTER key Pin
ABBASI_RA6-Mar-05 15:13
ABBASI_RA6-Mar-05 15:13 
GeneralRe: ENTER key Pin
Vasudevan Deepak Kumar6-Mar-05 19:30
Vasudevan Deepak Kumar6-Mar-05 19:30 
GeneralRe: ENTER key Pin
Gamya6-Mar-05 19:59
sussGamya6-Mar-05 19:59 
GeneralRe: ENTER key Pin
Bahadir Cambel7-Mar-05 4:48
Bahadir Cambel7-Mar-05 4:48 
Generalstupid string question Pin
Anonymous6-Mar-05 12:27
Anonymous6-Mar-05 12:27 
GeneralRe: stupid string question Pin
Christian Graus6-Mar-05 13:02
protectorChristian Graus6-Mar-05 13:02 
GeneralRe: stupid string question Pin
TrevorBo7-Mar-05 4:55
TrevorBo7-Mar-05 4:55 
GeneralSecurity question Pin
oohungoo6-Mar-05 4:06
oohungoo6-Mar-05 4:06 
GeneralRe: Security question Pin
Luis Alonso Ramos6-Mar-05 15:00
Luis Alonso Ramos6-Mar-05 15:00 
GeneralCLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 4:01
sympthom 96-Mar-05 4:01 
Generaltrying to make a reference to a dataset Pin
abdelmohsen6-Mar-05 3:48
abdelmohsen6-Mar-05 3:48 
QuestionStraight from CD to mp3 or ogg? Pin
homerjk6-Mar-05 2:47
homerjk6-Mar-05 2:47 
AnswerRe: Straight from CD to mp3 or ogg? Pin
eggie56-Mar-05 15:50
eggie56-Mar-05 15:50 
GeneralRe: Straight from CD to mp3 or ogg? Pin
homerjk7-Mar-05 3:17
homerjk7-Mar-05 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.