Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
Support and Learning
Productivity and Design Tools
Hello, I'm trying to find the Parent container of CurrentBitmap inside of CanvasElement.
I want to ignore the current zoom and window location of the image for a custom control's mouse position relative to the image. Any help would be appreciated. Thank you.
private
void
CanvasElement_MouseMove(
object
sender, MouseEventArgs e)
{
var canvasElement = radImageEditor1.ImageEditorElement.CanvasElement;
float
x = Math.Abs(canvasElement.ControlBoundingRectangle.X - e.X) * 1f / radImageEditor1.ImageEditorElement.ZoomFactor.Width;
y = Math.Abs(canvasElement.ControlBoundingRectangle.Y - e.Y) * 1f / radImageEditor1.ImageEditorElement.ZoomFactor.Height;
PointF positioInImage =
new
PointF(x, y);
Console.WriteLine(positioInImage);
}