Click here to Skip to main content
15,925,661 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: blit question Pin
Robert Rohde7-Mar-05 5:04
Robert Rohde7-Mar-05 5:04 
Ok now I got it.
Create a bimtap which is big enough to hold all your images, get a Graphics object from it, then draw all your images into that graphics and finally draw it onto your Graphics object:
<br />
Bitmap b = new Bitmap(totalWidth, totalHeight);<br />
using (Graphics g = Graphics.FromImage(b)) {<br />
string[] files = Directory.GetFiles("path", "*.gif");<br />
foreach(string file in files)<br />
{<br />
g.DrawImage(Image.FromFile(file), x, y, width, height);<br />
}<br />
}<br />
e.Graphics.DrawImageUnscaled(0, 0);<br />


But note that the total amount of time spent for this operation will not be shorter, because neverthless reading from CD or over network will consume some time. But if needed you could cache the whole bitmap to make the next drawing faster.
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 
Generalcontrol camera white c# for proccecing image Pin
mehdipg6-Mar-05 1:36
mehdipg6-Mar-05 1:36 

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.