为实现一个圆形的放大镜效果(即仅将特定圆形范围内的图像进行放大,外部图像保持不变),设函数draw实现原图绘制,函数enlarge实现图像放大的效果。以下代码片段正确的是?
A: context.save();context.beginPath();context.arcTo(50,50,50,0, Math.PI*2);context.clip();enlarge();context.restore();draw();
B: draw();context.save();context.arc(50,50,50,Math.PI*2, 0);context.clip();enlarge();context.restore();
C: context.save();enlarge();context.clip();context.arc(50,50,50,0, Math.PI*2);context.restore();
D: context.save();context.arc(50,50,50,Math.PI*2, 0);context.clip();draw();enlarge();context.restore();
A: context.save();context.beginPath();context.arcTo(50,50,50,0, Math.PI*2);context.clip();enlarge();context.restore();draw();
B: draw();context.save();context.arc(50,50,50,Math.PI*2, 0);context.clip();enlarge();context.restore();
C: context.save();enlarge();context.clip();context.arc(50,50,50,0, Math.PI*2);context.restore();
D: context.save();context.arc(50,50,50,Math.PI*2, 0);context.clip();draw();enlarge();context.restore();
举一反三
- Context in SFL refers to . A: Context of language B: Context of culture C: Context of society D: Context of situation
- According to Numan, context can be classified into . A: linguistic context and co-text. B: nonlinguistic context and extra-linguistic context. C: situational context and cultural context D: linguistic context and nonlinguistic context.
- How to narrow the following topic “The Effects of Deforestation on Gorillas in Africa ” A: Geographical context B: Historical context C: Biological context D: Social context
- 3.in which context will Gordon Brown’s announcement come true? A: in the context of a much bigger national disarmament B: in the context of a much bigger international disarmament C: in the context of a much bigger local disarmament D: in the context of a much bigger regional disarmament
- Context clues only include general context, definitions, synonyms and antonyms.