Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove System.Drawing.Imaging references from ArtData #5080

Open
wants to merge 1 commit into
base: p58-wip
Choose a base branch
from

Conversation

kaczy93
Copy link

@kaczy93 kaczy93 commented Apr 27, 2024

Removed reference to System.Drawing.Imaging from ArtData.
Simplified it to only read dimensions and bounds (no access to pixel colors)

@aryman28
Copy link

aryman28 commented Apr 27, 2024 via email

}

public static Rectangle MeasureBound(Bitmap bmp)
public static Rectangle MeasureBound(ArtInfo bmp)
Copy link

@AsYlum- AsYlum- May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to rename argument to something else as it's no longer bitmap bmp

{
Measure(bmp, out var xMin, out var yMin, out var xMax, out var yMax);

return new Rectangle(xMin, yMin, xMax - xMin, yMax - yMin);
}

public static Size MeasureSize(Bitmap bmp)
public static Size MeasureSize(ArtInfo bmp)
Copy link

@AsYlum- AsYlum- May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to rename argument to something else as it's no longer bitmap bmp

@@ -1221,7 +1221,7 @@ public void SetVisibility(Mobile m, bool? state)
}
}

public static Bitmap GetBitmap(int itemID)
public static ArtInfo GetBitmap(int itemID)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really GetBitmap() at this point? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants