-
Notifications
You must be signed in to change notification settings - Fork 289
Added Warping and Text Transformation as well as text erasing #1105
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
base: dev
Are you sure you want to change the base?
Added Warping and Text Transformation as well as text erasing #1105
Conversation
- Implement warp mode and text mask strokes in TextBlock class - Add warp editing controls in TextBlkShapeControl - Introduce text mask brush functionality in Canvas - Add undo/redo support for warp and text mask operations - Implement quad and mesh warping algorithms in TextBlkItem
- Add config option to move warp/transform/eraser tools to advanced text sidebar - Implement signal connections between canvas and text panel components - Update context menu to conditionally show text tools based on config - Add new methods for text tool operations in canvas and text panel
…menu Remove angle and squeeze buttons from text format panel and move them to the context menu for cleaner UI. This change simplifies the text formatting panel while maintaining all functionality through the context menu.
…ntrol - Add mesh-based warping mode for more flexible text deformation - Implement center control point for rise/fall warping effects - Support edge handles for both quad and mesh warping modes - Improve warping visualization with stroke outlines
Add raster scaling to text rendering to improve quality on high DPI displays. The changes include: - Calculating appropriate scale based on device DPI and dimensions - Applying scaling to the rendered image - Adding antialiasing and smooth transform hints - Ensuring proper image bounds when drawing
Add configurable option to enable high quality rendering for text warp preview. When enabled, uses higher raster scale for better quality. Also adds cache invalidation method to update text items when quality setting changes.
Implement adaptive mesh sizing for warp editing based on bounding rect dimensions and target cell size. Add mesh edge point calculation and improved z-value handling for control blocks. Introduce OpenCV-based mesh warping with caching for better performance. Refactor text alignment handling for vertical text and improve mesh warping quality with better interpolation and edge handling.
|
And the handle won't disappear while creating a rect region (which it should) for the rectangle tool in painting mode. |
Add _controls_hidden flag to track control visibility state and consolidate hide/show logic in hideControls/showControls methods. Remove duplicate visibility control code from startEditing/endEditing methods.
|
@longkidkoolstar |
|
Besides, please make an option to disable the warping effect, remind me if it already exists. |








Also made pressing escape for Text Erase to escape out of it