Click here to Skip to main content
16,006,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: Performance issue on Image load Pin
NarVish21-Apr-08 20:24
NarVish21-Apr-08 20:24 
GeneralRe: Performance issue on Image load Pin
Thomas Stockwell22-Apr-08 4:33
professionalThomas Stockwell22-Apr-08 4:33 
QuestionPNG transparency over Transparent forms? Pin
lovnin21-Apr-08 17:41
lovnin21-Apr-08 17:41 
GeneralRe: PNG transparency over Transparent forms? Pin
Reelix21-Apr-08 20:36
Reelix21-Apr-08 20:36 
Generalc# service accounts Pin
shwaguy21-Apr-08 17:10
shwaguy21-Apr-08 17:10 
GeneralRe: c# service accounts Pin
shwaguy28-Apr-08 4:46
shwaguy28-Apr-08 4:46 
GeneralGDI+ DrawImage( Image i, Point[] p) NotImplementedException Pin
Riot_starter21-Apr-08 16:24
Riot_starter21-Apr-08 16:24 
GeneralRe: GDI+ DrawImage( Image i, Point[] p) NotImplementedException Pin
Christian Graus21-Apr-08 17:29
protectorChristian Graus21-Apr-08 17:29 
Wow - you can use Reflektor to look at the .NET source.

It looks to me like those methods ultimately call this:
<br />
public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback, int callbackData)<br />
{<br />
    if (destPoints == null)<br />
    {<br />
        throw new ArgumentNullException("destPoints");<br />
    }<br />
    if (image == null)<br />
    {<br />
        throw new ArgumentNullException("image");<br />
    }<br />
    int length = destPoints.Length;<br />
    if ((length != 3) && (length != 4))<br />
    {<br />
        throw new ArgumentException(SR.GetString("GdiplusDestPointsInvalidLength"));<br />
    }<br />
    IntPtr handle = SafeNativeMethods.Gdip.ConvertPointToMemory(destPoints);<br />
    int errorStatus = SafeNativeMethods.Gdip.GdipDrawImagePointsRectI(new HandleRef(this, this.NativeGraphics), new HandleRef(image, image.nativeImage), new HandleRef(this, handle), destPoints.Length, srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height, (int) srcUnit, new HandleRef(imageAttr, (imageAttr != null) ? imageAttr.nativeImageAttributes : IntPtr.Zero), callback, new HandleRef(null, (IntPtr) callbackData));<br />
    Marshal.FreeHGlobal(handle);<br />
    this.IgnoreMetafileErrors(image, ref errorStatus);<br />
    this.CheckErrorStatus(errorStatus);<br />
}<br />


Looks like it should work to me.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: GDI+ DrawImage( Image i, Point[] p) NotImplementedException Pin
Riot_starter22-Apr-08 3:49
Riot_starter22-Apr-08 3:49 
GeneralHandling a paste into a textbox. Pin
msx2321-Apr-08 13:26
msx2321-Apr-08 13:26 
AnswerRe: Handling a paste into a textbox. Pin
Christian Wikander21-Apr-08 20:37
Christian Wikander21-Apr-08 20:37 
GeneralConditional comparaison Pin
baranils21-Apr-08 12:03
baranils21-Apr-08 12:03 
GeneralRe: Conditional comparaison Pin
Luc Pattyn21-Apr-08 12:08
sitebuilderLuc Pattyn21-Apr-08 12:08 
GeneralRe: Conditional comparaison Pin
baranils21-Apr-08 12:16
baranils21-Apr-08 12:16 
NewsRe: Conditional comparaison Pin
Spacix One21-Apr-08 12:29
Spacix One21-Apr-08 12:29 
GeneralRe: Conditional comparaison Pin
baranils21-Apr-08 12:53
baranils21-Apr-08 12:53 
GeneralRe: Conditional comparaison Pin
Spacix One21-Apr-08 13:41
Spacix One21-Apr-08 13:41 
GeneralRe: Conditional comparaison Pin
baranils21-Apr-08 19:35
baranils21-Apr-08 19:35 
GeneralRe: Conditional comparaison Pin
Spacix One22-Apr-08 2:43
Spacix One22-Apr-08 2:43 
GeneralRe: Conditional comparaison Pin
baranils22-Apr-08 2:51
baranils22-Apr-08 2:51 
GeneralRe: Conditional comparaison Pin
Spacix One22-Apr-08 3:31
Spacix One22-Apr-08 3:31 
GeneralRe: Conditional comparaison Pin
Spacix One21-Apr-08 12:23
Spacix One21-Apr-08 12:23 
Generalbeginners question Pin
NewToAspDotNet21-Apr-08 9:23
NewToAspDotNet21-Apr-08 9:23 
GeneralRe: beginners question Pin
Pete O'Hanlon21-Apr-08 9:31
mvePete O'Hanlon21-Apr-08 9:31 
Generalwrong forum Pin
Luc Pattyn21-Apr-08 10:04
sitebuilderLuc Pattyn21-Apr-08 10:04 

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.