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
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
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);
}