Tag:Draw

  • IOS crop tool

    Time:2020-1-16

    download Demo and tool download link spcliptool Instructions [[SPClipTool shareClipTool] sp_clipOriginImage:pickerImage complete:^(UIImage * _Nonnull image) { //Get the image subsequent operation after clipping }]; demand Picture clipping, the effect is as shown in the figure below, support picture dragging, zooming, and free size change of clipping box. thinking Two uiimageviews, one as the background, plus […]

  • Android custom controls: adaptive size text controls

    Time:2020-1-14

    demand Adaptive size text:Design sketch: In the project development, the developers lay out some pages with text according to a set of sizes provided by the UI personnel,The problem of data limit is often neglected, which results in the problem of screen adaptation.For example:The length of text (or value) is variable, such as experience value, […]

  • IOS Core Animation advanced skills – 6

    Time:2020-1-12

    11. Timer based animation Timer based animation I can guide you, but you have to do what I say. –Hacker empire In Chapter 10, “buffering,” we looked atCAMediaTimingFunction, which is a way to simulate physical effects by controlling the animation buffer, such as acceleration or deceleration to enhance the sense of reality. What if you […]

  • IOS Core Animation advanced skills – 7

    Time:2020-1-11

    13. Efficient drawing Efficient drawing Unnecessary efficiency considerations are often the root cause of performance problems. ——William Allan Wulf In Chapter 12, “curvature of velocity,” we learn how to use instruments to diagnose core animation performance problems. There are many potential performance pitfalls when building an IOS app, but in this chapter we will focus […]

  • Solve the problem of using canvas to generate invitation posters with wechat avatars without wechat avatars

    Time:2020-1-10

    Recently, I made a H5 page visited in wechat, long press the sharing picture to send the poster invited by friends, search the information on the Internet, come up with the solution, and use canvas to draw the page to generate pictures, Problem: Canvas images cross domain. Solution process (pit filling process): 1. From the […]

  • Using SVG in weex

    Time:2020-1-9

    Introduction to weex svg In recent years, SVG has become a popular technology in front-end development. We can build our icons in business scenarios and replace some bitmaps. With the popularity of animation interaction, SVG has become one of our choices.Today we will show you how to use weex SVG to display some graphic information […]

  • On drawing polygon with canvas

    Time:2020-1-7

    This paper mainly uses the use of coordinate axis to draw polygons, and points are all found on the Y axis. This method can better understand the graphics and modify. //ID is the attribute ID of the canvas tag in HTML; //x. Y is the starting position of the axis, because the canvas default axis […]

  • IOS Core Animation advanced skills – 8

    Time:2020-1-6

    IOS Core Animation advanced skills – 1 IOS Core Animation advanced skills – 2 IOS Core Animation advanced skills – 3 IOS Core Animation advanced skills – 4 IOS Core Animation advanced skills – 5 IOS Core Animation advanced skills – 6 IOS Core Animation advanced skills – 7 15. Layer performance Layer performance For […]

  • Talk about repaintboundary in flutter

    Time:2020-1-3

    cause One lazy afternoon, I happened to see this record of Fletter stepping on the pit. The author’s question aroused my curiosity. The author’s questions are described as follows: A chat dialog page, because the dialog shape needs to be customized, it adoptsCustomPainterFrom the define drawing dialog box. During the test, it was found thatipad […]

  • 1. Pyplot basic syntax

    Time:2020-1-3

    Catalog 1. Pyplot basic syntax 2. Scatter chart and line chart 3. 3D map and contour map 1. Pyplot basic syntax (1) Create canvasFigure () creates a blank canvas. You can specify the size of the canvas, figsize, and set the resolution DPI plt.figure() PLT. Figure (figsize = (8,6), DPI = 80) ා (8,6) represents […]

  • Flutter – life cycle

    Time:2019-12-29

    Statefulwidget needs to use state object to deal with the user’s interaction or the change of its internal data in a specific stage, which is embodied in the UI. This specific phase covers the whole process from loading to unloading of a component, namely the life cycle. The widget in the flutter also has a […]

  • Front end training – intermediate stage (26) – canvas drawing (November 21, 2019)

    Time:2019-12-28

    The most basic part of the front end isHTML+CSS+Javascript。 Mastering these three technologies, even if you are a beginner, is just a beginner. Now the definition of front-end development is far more than these. Front end classroom(HTML/CSS/JS)In line with the central idea of improving the technical level and strengthening the basic knowledge, we have started […]