GithubHelp home page GithubHelp logo

一些疑问 about skarchcutter HOT 5 CLOSED

dourgulf avatar dourgulf commented on June 13, 2024
一些疑问

from skarchcutter.

Comments (5)

shevakuilin avatar shevakuilin commented on June 13, 2024

from skarchcutter.

dourgulf avatar dourgulf commented on June 13, 2024
  1. 第一个问题你解析的那部分我理解了,我不理解的是为何针对UIView绘制Image的时候不适用“UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:rect byRoundingCorners:direction cornerRadii:CGSizeMake(cornerRadii - borderWidth, cornerRadii - borderWidth)];”?
  2. 你的解析只是解析了代码的含义,没有解析代码的动机。我的疑问是:
    image = UIGraphicsGetImageFromCurrentImageContext();
    这个方法明确告知“Returns an image based on the contents of the current bitmap-based graphics context.
    You should call this function only when a bitmap-based graphics context is the current graphics context. If the current context is nil or was not created by a call to UIGraphicsBeginImageContext, this function returns nil.”
    也就是说它要么返回一个UIImage对象,要么返回nil,怎么会返回不是nil并且不是UIImage对象的情况呢?

from skarchcutter.

shevakuilin avatar shevakuilin commented on June 13, 2024

from skarchcutter.

dourgulf avatar dourgulf commented on June 13, 2024

懂了,多谢指教!

from skarchcutter.

shevakuilin avatar shevakuilin commented on June 13, 2024

from skarchcutter.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.