Resolution independent image resource
First Claim
1. At least one computer storage medium having stored computer-executable instructions which, when executed by a processor of a computer system that includes memory and a display device, implement a method for operating on an image with a programming interface that includes a class hierarchy of operations for operating on images, the method comprising:
- receiving at the programming interface that is loaded into the memory a height parameter and a width parameter that indicate a height and width with which to display the image, wherein the height and width are parameters of an object that is of type ImageSource, the object being stored in the memory, the object also including a source parameter which represents the source of the image, wherein ImageSource is an abstract parent class of the programming interface, the programming interface being defined according to a class hierarchy defining operations for operating on images associated with bitmaps and images associated with vector graphics, the images being stored in the memory, the class hierarchy further including a plurality of children classes that are children of the ImageSource class, the children classes including a HwndImage class which enables a window to be treated as a source of the image, a DrawingImage class which enables a drawing created by drawing commands to be treated as the source of the image, a BitmapSource class which enables a bitmap to be treated as the source of the image, and a VisualImage class which enables a video image to be treated as the source of the image, such that the source parameter of the object may represent a source of the image having a type of any one of the children classes such that the object need not know the type of the source of the image to display the image; and
in response to receiving the height and width parameters, displaying, on the display device, the image in an area corresponding to the height and width parameters using a function that is defined by the child class to which the source of the image corresponds such that the image is displayed without the object knowing the type of the source of the image.
2 Assignments
0 Petitions
Accused Products
Abstract
In aspects, a class hierarchy is defined that provides definitions of methods for operating on at least bitmaps and vector graphics. A software developer may instantiate an object according to a class definition of the class hierarchy and assign it to any variable (e.g., a control'"'"'s property) having a type of an ancestor class of the class. The object may be associated with an image internally represented as bitmap, vector graphics, or some other representation. The control does not need to be aware of how the image is represented. Rather, to draw an image associated with the object, a draw method associated with the object may be called.
28 Citations
20 Claims
-
1. At least one computer storage medium having stored computer-executable instructions which, when executed by a processor of a computer system that includes memory and a display device, implement a method for operating on an image with a programming interface that includes a class hierarchy of operations for operating on images, the method comprising:
-
receiving at the programming interface that is loaded into the memory a height parameter and a width parameter that indicate a height and width with which to display the image, wherein the height and width are parameters of an object that is of type ImageSource, the object being stored in the memory, the object also including a source parameter which represents the source of the image, wherein ImageSource is an abstract parent class of the programming interface, the programming interface being defined according to a class hierarchy defining operations for operating on images associated with bitmaps and images associated with vector graphics, the images being stored in the memory, the class hierarchy further including a plurality of children classes that are children of the ImageSource class, the children classes including a HwndImage class which enables a window to be treated as a source of the image, a DrawingImage class which enables a drawing created by drawing commands to be treated as the source of the image, a BitmapSource class which enables a bitmap to be treated as the source of the image, and a VisualImage class which enables a video image to be treated as the source of the image, such that the source parameter of the object may represent a source of the image having a type of any one of the children classes such that the object need not know the type of the source of the image to display the image; and in response to receiving the height and width parameters, displaying, on the display device, the image in an area corresponding to the height and width parameters using a function that is defined by the child class to which the source of the image corresponds such that the image is displayed without the object knowing the type of the source of the image. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. In a computing system that includes memory and a display device, a method for operating on an image associated with an object that is defined according to classes of a class hierarchy, comprising:
-
receiving at a programming interface that is loaded into the memory a height parameter and a width parameter that indicate a height and width with which to display the image, wherein the height and width are parameters of the object that is of type ImageSource, the object being stored in the memory, the object also including a source parameter which represents the source of the image, wherein ImageSource is an abstract parent class of the programming interface, the programming interface being defined according to a class hierarchy defining operations for operating on images associated with bitmaps and images associated with vector graphics, the images being stored in the memory, the class hierarchy further including a plurality of children classes that are children of the ImageSource class, the children classes including a HwndImage class which enables a window to be treated as a source of the image, a DrawingImage class which enables a drawing created by drawing commands to be treated as the source of the image, a BitmapSource class which enables a bitmap to be treated as the source of the image, and a VisualImage class which enables a video image to be treated as the source of the image, such that the source parameter of the object may represent a source of the image having a type of any of the children classes such that the object need not know the type of the source of the image to display the image; and in response to receiving the height and width parameters, displaying, on the display device, the image in an area corresponding to the height and width parameters using a function that is defined by the child class to which the source of the image corresponds such that the image is displayed without the object knowing the type of the source of the image. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. In a computing system that includes memory and a display device, a graphics framework system for operating on an image associated with an object instantiated in accordance with a class hierarchy comprising:
-
a processor; a display device; and memory storing computer-executable instructions which when executed by the processor perform a method comprising; receiving at a programming interface that is loaded into the memory a height parameter and a width parameter that indicate a height and width with which to display the image, wherein the height and width are parameters of the object that is of type ImageSource, the object being stored in the memory, the object also including a source parameter which represents the source of the image, wherein ImageSource is an abstract parent class of the programming interface, the programming interface being defined according to a class hierarchy defining operations for operating on images associated with bitmaps and images associated with vector graphics, the images being stored in the memory, the class hierarchy further including a plurality of children classes that are children of the ImageSource class, the children classes including a HwndImage class which enables a window to be treated as a source of the image, a DrawingImage class which enables a drawing created by drawing commands to be treated as the source of the image, a BitmapSource class which enables a bitmap to be treated as the source of the image, and a VisualImage class which enables a video image to be treated as the source of the image, such that the source parameter of the object may represent a source of the image having a type of any of the children classes such that the object need not know the type of the source of the image to display the image; and in response to receiving the height and width parameters, displaying, on the display device, the image in an area corresponding to the height and width parameters using a function that is defined by the child class to which the source of the image corresponds such that the image is displayed without the object knowing the type of the source of the image. - View Dependent Claims (18, 19, 20)
-
Specification