![]() ![]() drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight) It lets us cut out a section of the source image, then scale and draw it on our canvas. The Image object also supports the standard properties and events.The third and last variant of the drawImage() method has eight parameters in addition to the image source. Sets or returns the value of the width attribute of an image Sets or returns the value of the vspace attribute of an image Sets or returns the value of the usemap attribute of an image Sets or returns the value of the src attribute of an image Sets or returns the value of the name attribute of an image Sets or returns a URL to a low-resolution version of an image Sets or returns the value of the longdesc attribute of an image ![]() Sets or returns whether an image should be part of a server-side image-map, or not Sets or returns the value of the hspace attribute of an image Sets or returns the value of the height attribute of an image Sets or returns the CORS settings of an image Returns whether or not the browser is finished loading an image Sets or returns the value of the border attribute of an image Sets or returns the value of the alt attribute of an image Sets or returns the value of the align attribute of an image Var x = document.createElement("IMG") Try it Yourself » Image Object Properties Property Js new simpleimage password#HTML Objects - button checkbox color date datetime datetime-local email file hidden image month number password radio range reset search submit text time url week Web APIs API Console API Fetch API Fullscreen AlignContent alignItems alignSelf animation animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationTimingFunction animationPlayState background backgroundAttachment backgroundColor backgroundImage backgroundPosition backgroundRepeat backgroundClip backgroundOrigin backgroundSize backfaceVisibility border borderBottom borderBottomColor borderBottomLeftRadius borderBottomRightRadius borderBottomStyle borderBottomWidth borderCollapse borderColor borderImage borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeft borderLeftColor borderLeftStyle borderLeftWidth borderRadius borderRight borderRightColor borderRightStyle borderRightWidth borderSpacing borderStyle borderTop borderTopColor borderTopLeftRadius borderTopRightRadius borderTopStyle borderTopWidth borderWidth bottom boxShadow boxSizing captionSide caretColor clear clip color columnCount columnFill columnGap columnRule columnRuleColor columnRuleStyle columnRuleWidth columns columnSpan columnWidth counterIncrement counterReset cssFloat cursor direction display empt圜ells filter flex flexBasis flexDirection flexFlow flexGrow flexShrink flexWrap font fontFamily fontSize fontStyle fontVariant fontWeight fontSizeAdjust height isolation justif圜ontent left letterSpacing lineHeight listStyle listStyleImage listStylePosition listStyleType margin marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth objectFit objectPosition opacity order orphans outline outlineColor outlineOffset outlineStyle outlineWidth overflow overflowX overflowY padding paddingBottom paddingLeft paddingRight paddingTop pageBreakAfter pageBreakBefore pageBreakInside perspective perspectiveOrigin position quotes resize right scrollBehavior tableLayout tabSize textAlign textAlignLast textDecoration textDecorationColor textDecorationLine textDecorationStyle textIndent textOverflow textShadow textTransform top transform transformOrigin transformStyle transition transitionProperty transitionDuration transitionTimingFunction transitionDelay unicodeBidi userSelect verticalAlign visibility width wordBreak wordSpacing wordWrap widows zIndex ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |