libertyernie / brawltools

BrawlBox and BrawlLib
http://forums.kc-mm.com/index.php?topic=67847.0
143 stars 31 forks source link

Index outside the bounds of array when importing attached texture #211

Closed Ebola16 closed 5 years ago

Ebola16 commented 5 years ago

Import this texture into a MiscData BRES file hello w

and receive: Index was outside the bounds of the array. at System.BitmapExtension.GuessIfAlphaInverted(Bitmap bmp) at System.Windows.Forms.TextureConverterDialog.Recommend() at System.Windows.Forms.TextureConverterDialog.OnShown(EventArgs e) at System.Windows.Forms.Form.CallShownEvent() at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

libertyernie commented 5 years ago

This is in code I wrote, so I ought to be able to fix it :)