private void DrawNoteImage(RenderContext context, Note note, float x, float y, float r) { var w = r * 2 * Definitions.NoteImageAspectRatio; var h = r * 2; x -= w / 2; y -= h / 2; var loc = NotesLayerUtils.GetIconLocation(DefaultSongColor, note); context.DrawImage(NotesImage, x, y, w, h, loc.x, loc.y, Definitions.NoteImageCellWidth, Definitions.NoteImageCellHeight); }