MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / scalePixmap

Method scalePixmap

src/components/Image/RNImage.ts:111–122  ·  view source on GitHub ↗
(size: QSize)

Source from the content-addressed store, hash-verified

109 this.scalePixmap(this.size());
110 }
111 scalePixmap(size: QSize) {
112 if (this.originalPixmap) {
113 return super.setPixmap(
114 this.originalPixmap.scaled(
115 size.width(),
116 size.height(),
117 this.aspectRatioMode,
118 this.transformationMode
119 )
120 );
121 }
122 }
123}
124
125async function getLoadedPixmap(imageUrlOrPath: string): Promise<QPixmap> {

Callers 3

createInstanceMethod · 0.95
setAspectRatioModeMethod · 0.95
setTransformationModeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected